/* 像素风格字体 */
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=DotGothic16&display=swap");

/* 通用样式 */
body {
    font-family: "Press Start 2P", cursive;
    background-color: #f9f7f0;
    margin: 0;
    padding: 5px;
    color: #5a5a5a;
    transition: all 0.3s ease;
    background-image: linear-gradient(#e8e5d8 1px, transparent 1px),
        linear-gradient(90deg, #e8e5d8 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top-right navigation */
.top-nav {
    position: absolute;
    top: 20px;
    right: 180px; /* leave space for theme toggle at right:20px */
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #5a5a5a;
    text-decoration: none;
    font-family: "Press Start 2P", cursive;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* to mimic button hover movement without background */
}

.dark-mode .nav-link {
    color: #e0e0e0;
}

.nav-link:hover {
    color: #fff;
    background-color: #7aa7d8; /* use same hover tone as upload-label */
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.4rem; /* slight padding for hover visual, no background by default */
    border: 2px solid #5a8bc8;
    border-radius: 6px;
}

/* Main content wrapper */
.wrap {
    margin-top: 70px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    padding: 0 5px;
}

/* 首页专用样式 - 默认不滚动 */
body.homepage {
    min-height: 100vh;
    overflow: auto;
}

body.dark-mode {
    background-color: #1a1a2e;
    color: #e0e0e0;
    background-image: linear-gradient(#2a2a3a 1px, transparent 1px),
        linear-gradient(90deg, #2a2a3a 1px, transparent 1px);
}

h1 {
    font-family: "Press Start 2P", cursive;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #5a5a5a;
    text-align: center;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.dark-mode h1 {
    color: #e0e0e0;
    text-shadow: 3px 3px 0px rgba(255, 255, 255, 0.1);
}

/* 示例区域 */
.example-title {
    font-family: "Press Start 2P", cursive;
    font-size: 0.9rem;
    color: #5a5a5a;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.dark-mode .example-title {
    color: #e0e0e0;
}

.example-section {
    margin: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.example-item {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.example-item:first-child {
    justify-content: center;
}

.example-item:first-child .example-title {
    position: absolute;
    right: calc(50% + 100px + 2rem);
    margin-right: 0;
}

.example-gif {
    width: 50%;
    max-width: 160px;
    max-height: 160px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    image-rendering: pixelated;
}

.example-arrow {
    width: 30px;
    height: 30px;
    opacity: 0.6;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.example-sprite {
    max-width: 70%;
    max-height: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    image-rendering: pixelated;
}

.dark-mode .example-gif {
    border-color: #5a8bc8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .example-sprite {
    border-color: #81b881;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .example-arrow {
    filter: invert(1) drop-shadow(0 2px 4px rgba(255, 255, 255, 0.1));
}

/* 上传区域 */
.upload-section {
    margin-bottom: 0.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.upload-label {
    display: inline-block;
    background-color: #8bb8e8;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Press Start 2P", cursive;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    border: 2px solid #5a8bc8;
    position: relative;
    overflow: hidden;
}

.upload-label:hover {
    background-color: #7aa7d8;
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
}

.upload-label:active {
    transform: translateY(1px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.upload-label input[type="file"] {
    display: none;
}

/* 帧容器 */
.frames-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 当有帧内容时，允许页面滚动 */
body.homepage.has-frames {
    height: auto;
    min-height: 100vh;
    overflow: visible;
}

.wrap.has-frames {
    justify-content: flex-start;
    min-height: calc(100vh - 140px); /* 减去header和footer的高度 */
}

.frame-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid #fff;
    position: relative;
}

.dark-mode .frame-item {
    background-color: #2d2d4d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #3d3d5d;
}

.frame-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.dark-mode .frame-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.frame-item img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: pixelated;
}

.frame-info {
    padding: 0.8rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    background-color: #f5f5f5;
    font-family: "Press Start 2P", cursive;
    letter-spacing: 0;
}

.dark-mode .frame-info {
    color: #ccc;
    background-color: #3d3d5d;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform-origin: center;
    transition: transform 0.3s ease;
    border: 4px solid #fff;
    image-rendering: pixelated;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
    font-family: "Press Start 2P", cursive;
}

.modal-close:hover {
    color: #ff9a9e;
    transform: scale(1.1);
}

/* 导航箭头 */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-family: "Press Start 2P", cursive;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.modal-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: #a18cd1;
    transform: translateY(-50%) scale(1.1);
}

.modal-nav.left {
    left: 20px;
}

.modal-nav.right {
    right: 20px;
}

/* 使用手册模态框样式 */
.manual-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.manual-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 4px solid #8bb8e8;
    position: relative;
}

.dark-mode .manual-content {
    background-color: #2d2d4d;
    border-color: #5a8bc8;
}

.manual-title {
    font-family: "Press Start 2P", cursive;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #5a5a5a;
    text-align: center;
}

.dark-mode .manual-title {
    color: #e0e0e0;
}

.manual-section {
    margin-bottom: 1.5rem;
}

.manual-section-title {
    font-family: "Press Start 2P", cursive;
    font-size: 1rem;
    color: #8bb8e8;
    margin-bottom: 0.5rem;
}

.dark-mode .manual-section-title {
    color: #a18cd1;
}

.manual-text {
    font-family: "Press Start 2P", cursive;
    /* font-size: 0.9rem; */
    line-height: 1.5;
    color: #5a5a5a;
}

.dark-mode .manual-text {
    color: #e0e0e0;
}

.manual-list {
    padding-left: 1.5rem;
}

.manual-list li {
    margin-bottom: 0.5rem;
}

/* 帮助按钮 */
.help-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #ff9a9e;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1003;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #ff7b7f;
}

.help-button:hover {
    background-color: #ff7b7f;
    transform: translateY(-5px);
}

.help-button svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* 加载遮罩 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(249, 247, 240, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1001;
    flex-direction: column;
}

.dark-mode .loading-overlay {
    background-color: rgba(26, 26, 46, 0.9);
}

.loading-spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #8bb8e8;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark-mode .loading-spinner {
    border: 6px solid #3d3d5d;
    border-top: 6px solid #a18cd1;
}

.loading-text {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #5a5a5a;
    font-family: "Press Start 2P", cursive;
    letter-spacing: 1px;
}

.dark-mode .loading-text {
    color: #e0e0e0;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* 错误消息 */
.error-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ff6b6b;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    z-index: 1002;
    text-align: center;
    font-family: "Press Start 2P", cursive;
    font-size: 0.9rem;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
    border: 2px solid #ff4c4c;
}

/* 进度条 */
.progress-bar {
    width: 300px;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 6px;
    margin-top: 20px;
    overflow: hidden;
    border: 2px solid #d0d0d0;
}

.dark-mode .progress-bar {
    background-color: #3d3d5d;
    border-color: #4d4d6d;
}

.progress-bar-fill {
    height: 100%;
    background-color: #8bb8e8;
    width: 0;
    transition: width 0.3s ease;
    background-image: linear-gradient(90deg, #8bb8e8, #a18cd1);
}

/* 取消按钮 */
.cancel-button {
    margin-top: 20px;
    padding: 0.75rem 1.5rem;
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Press Start 2P", cursive;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    border: 2px solid #ff4c4c;
}

.cancel-button:hover {
    background-color: #ff4c4c;
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
}

.cancel-button:active {
    transform: translateY(1px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1003;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

#moonIcon {
    fill: #5a5a5a;
}

#sunIcon {
    fill: #ffcc00;
}

.dark-mode .theme-toggle {
    background-color: #3d3d5d;
}

.dark-mode #moonIcon {
    fill: #ffcc00;
}

/* 返回顶部按钮 */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #8bb8e8;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1003;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #5a8bc8;
}

.back-to-top:hover {
    background-color: #7aa7d8;
    transform: translateY(-5px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* 像素颜色显示 */
.pixel-color {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 1004;
    display: none;
    pointer-events: none;
    font-family: "Press Start 2P", cursive;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pixel-color .color-preview {
    width: 100%;
    height: 12px;
    margin-top: 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#sunIcon {
    display: none;
}

/* 生成雪碧图按钮 */
.generate-sprite-button {
    display: none; /* 默认隐藏 */
    background-color: #a1d8a1;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Press Start 2P", cursive;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    border: 2px solid #81b881;
}

.generate-sprite-button.show {
    display: inline-block;
}

.generate-sprite-button:hover {
    background-color: #91c891;
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
}

.generate-sprite-button:active {
    transform: translateY(1px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

/* 像素风格装饰元素 */
.pixel-corner {
    position: fixed;
    width: 40px;
    height: 40px;
    z-index: -1;
}

.pixel-corner.top-left {
    top: 0;
    left: 0;
    border-top: 10px solid #8bb8e8;
    border-left: 10px solid #8bb8e8;
}

.pixel-corner.top-right {
    top: 0;
    right: 0;
    border-top: 10px solid #ff9a9e;
    border-right: 10px solid #ff9a9e;
}

.pixel-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 10px solid #a18cd1;
    border-left: 10px solid #a18cd1;
}

.pixel-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 10px solid #a1d8a1;
    border-right: 10px solid #a1d8a1;
}

.dark-mode .pixel-corner.top-left {
    border-color: #5a8bc8;
}

.dark-mode .pixel-corner.top-right {
    border-color: #ff7b7f;
}

.dark-mode .pixel-corner.bottom-left {
    border-color: #917cbf;
}

.dark-mode .pixel-corner.bottom-right {
    border-color: #81b881;
}

/* 汉堡菜单样式 */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 80px; /* 在主题切换按钮左边 */
    background: #fff;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1004;
    border-radius: 6px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dark-mode .mobile-nav-toggle {
    background-color: #3d3d5d;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.mobile-nav-toggle:hover {
    transform: scale(1.05);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: #5a5a5a;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.dark-mode .hamburger-line {
    background-color: #e0e0e0;
}

/* 汉堡菜单动画 */
.mobile-nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 移动端导航菜单 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(249, 247, 240, 0.98);
    z-index: 1003;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.dark-mode .mobile-nav {
    background-color: rgba(26, 26, 46, 0.98);
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.mobile-nav-link {
    color: #5a5a5a;
    text-decoration: none;
    font-family: "Press Start 2P", cursive;
    font-size: 1.2rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border: 3px solid transparent;
    border-radius: 8px;
    position: relative;
    background: linear-gradient(135deg, rgba(139, 184, 232, 0.1), rgba(161, 216, 161, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.dark-mode .mobile-nav-link {
    color: #e0e0e0;
    background: linear-gradient(135deg, rgba(139, 184, 232, 0.2), rgba(161, 216, 161, 0.2));
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #8bb8e8, #a1d8a1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 184, 232, 0.3);
    border-color: #5a8bc8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* 防止横向滚动 */
    body {
        overflow-x: hidden;
    }
    
    .wrap {
        overflow-x: hidden;
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* 隐藏桌面导航，显示移动端导航 */
    .top-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: flex;
    }

    /* 首页布局优化 */
    h1 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: center;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    /* 副标题行间距优化 */
    h2 {
        line-height: 1.6 !important;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    /* 示例区域移动端优化 */
    .example-section {
        margin: 2rem 0;
        gap: 1.5rem;
    }

    .example-item {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .example-item:first-child {
        flex-direction: column;
        gap: 1rem;
    }

    .example-item:first-child .example-title {
        position: static;
        margin-bottom: 0;
        text-align: center;
        font-size: 0.8rem;
    }

    .example-gif {
        max-width: 120px;
        max-height: 120px;
        margin: 0 auto;
        display: block;
    }

    .example-arrow {
        width: 24px;
        height: 24px;
        opacity: 0.8;
    }

    .example-sprite {
        max-width: 100%;
        max-height: 80px;
        margin: 0 auto;
        display: block;
    }

    /* 上传区域移动端优化 */
    .upload-section {
        margin-bottom: 2rem;
        flex-direction: column;
        gap: 1.5rem;
        overflow-x: hidden; /* 防止横向滚动 */
    }

    .upload-label,
    .generate-sprite-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem !important; /* 增大字体 */
        min-height: 48px; /* 确保触控友好 */
        width: auto; /* 改为自动宽度 */
        max-width: calc(100vw - 2rem); /* 防止超出屏幕 */
        margin: 0 auto;
        box-sizing: border-box;
        display: inline-block;
        text-align: center;
        white-space: nowrap; /* 防止文字换行 */
    }

    /* 帧容器网格优化 */
    .frames-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 0.8rem;
        padding: 1rem 0.5rem;
        max-width: calc(100vw - 1rem);
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        margin: 0 auto;
        justify-items: center;
    }

    .frame-item {
        border-radius: 8px;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .frame-info {
        padding: 0.5rem;
        font-size: 0.7rem;
        word-wrap: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 移动端模态框优化 */
    .modal {
        padding: 1rem;
    }

    .modal-content {
        max-width: 95%;
        max-height: 85%;
        border-radius: 8px;
        border-width: 2px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        border: none;
        cursor: pointer;
    }

    .modal-nav {
        top: 50%;
        padding: 10px;
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.7);
        border: 2px solid rgba(255, 255, 255, 0.5);
    }

    .modal-nav.left {
        left: 10px;
    }

    .modal-nav.right {
        right: 10px;
    }

    /* 使用手册模态框移动端优化 */
    .manual-content {
        width: 95%;
        max-height: 85vh;
        padding: 1.5rem;
        border-radius: 8px;
        border-width: 2px;
    }

    .manual-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .manual-section-title {
        font-size: 0.9rem;
    }

    .manual-text {
        font-size: 0.7rem;
        line-height: 1.6;
    }

    .manual-list li {
        font-size: 0.7rem;
    }

    /* 像素颜色显示移动端优化 */
    .pixel-color {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-radius: 6px;
        max-width: 200px;
    }

    /* 通用按钮系统移动端优化 */
    .help-button,
    .back-to-top,
    .theme-toggle {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        padding: 12px;
    }

    .help-button {
        bottom: 90px;
        right: 15px;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        display: flex !important;
    }

    .theme-toggle {
        top: 15px;
        right: 15px;
    }

    .mobile-nav-toggle {
        top: 15px;
        right: 75px;
    }

    /* 加载状态移动端优化 */
    .loading-overlay {
        padding: 2rem;
    }

    .loading-text {
        font-size: 1rem;
        margin-top: 1.5rem;
        text-align: center;
    }

    .progress-bar {
        width: 250px;
        height: 8px;
        margin-top: 1.5rem;
    }

    .cancel-button {
        margin-top: 1.5rem;
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
        min-height: 48px;
        min-width: 120px;
    }

    /* 错误消息移动端优化 */
    .error-message {
        padding: 1rem 1.5rem;
        font-size: 0.8rem;
        max-width: 90%;
        border-radius: 6px;
        text-align: center;
    }

    /* 触控反馈优化 */
    button:active,
    .nav-link:active,
    .mobile-nav-link:active,
    .frame-item:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    /* 确保所有可点击元素满足最小触控区域 */
    button,
    .nav-link,
    .mobile-nav-link,
    .upload-label,
    .generate-sprite-button,
    .download-button,
    .regenerate-button,
    .back-button,
    .faq-question {
        min-height: 44px;
        min-width: 44px;
    }

    /* 移动端导航链接优化 */
    .mobile-nav-link {
        font-size: 1rem !important;
        padding: 1rem 1.5rem !important;
        letter-spacing: 1px !important;
        min-height: 56px;
        width: 280px;
        max-width: calc(100vw - 4rem);
        box-sizing: border-box;
    }

    .mobile-nav-links {
        gap: 1.5rem;
        padding: 0 2rem;
        max-width: calc(100vw - 2rem);
    }
}

/* 法律文档页面样式 */
.legal-document {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
}

.legal-document h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.legal-document h2 {
    font-size: 1.2rem;
    margin: 2rem 0 1rem 0;
    color: #8bb8e8;
    border-bottom: 2px solid #8bb8e8;
    padding-bottom: 0.5rem;
}

.dark-mode .legal-document h2 {
    color: #a18cd1;
    border-bottom-color: #a18cd1;
}

.legal-document h3 {
    font-size: 1rem;
    margin: 1.5rem 0 0.75rem 0;
    color: #5a8bc8;
}

.dark-mode .legal-document h3 {
    color: #7aa7d8;
}

.legal-document h4 {
    font-size: 0.9rem;
    margin: 1rem 0 0.5rem 0;
    color: #666;
}

.dark-mode .legal-document h4 {
    color: #ccc;
}

.legal-document p {
    margin-bottom: 1rem;
    font-family: "Press Start 2P", cursive;
    font-size: 0.8rem;
    line-height: 1.8;
}

.legal-document ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-document li {
    margin-bottom: 0.5rem;
    font-family: "Press Start 2P", cursive;
    font-size: 0.8rem;
    line-height: 1.6;
}

.legal-document a {
    color: #8bb8e8;
    text-decoration: none;
    border-bottom: 1px solid #8bb8e8;
    transition: all 0.3s ease;
}

.legal-document a:hover {
    color: #7aa7d8;
    border-bottom-color: #7aa7d8;
}

.dark-mode .legal-document a {
    color: #a18cd1;
    border-bottom-color: #a18cd1;
}

.dark-mode .legal-document a:hover {
    color: #917cbf;
    border-bottom-color: #917cbf;
}

.last-updated {
    text-align: center;
    color: #888;
    font-style: italic;
    margin-bottom: 2rem;
}

.dark-mode .last-updated {
    color: #aaa;
}

.back-link {
    margin-top: 3rem;
    text-align: center;
}

.back-button {
    display: inline-block;
    background-color: #8bb8e8;
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none !important;
    border: none !important;
    font-family: "Press Start 2P", cursive;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    border: 2px solid #5a8bc8;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #7aa7d8;
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
}

.dark-mode .back-button {
    background-color: #a18cd1;
    border-color: #917cbf;
}

.dark-mode .back-button:hover {
    background-color: #917cbf;
}

/* 响应式调整 - 法律文档 */
@media (max-width: 768px) {
    .legal-document {
        padding: 1rem;
        max-width: 100%;
    }
    
    .legal-document h1 {
        font-size: 1.4rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .legal-document h2 {
        font-size: 1rem;
        margin: 1.5rem 0 0.8rem 0;
        line-height: 1.4;
    }
    
    .legal-document h3 {
        font-size: 0.9rem;
        margin: 1.2rem 0 0.6rem 0;
        line-height: 1.4;
    }
    
    .legal-document h4 {
        font-size: 0.8rem;
        margin: 1rem 0 0.5rem 0;
    }
    
    .legal-document p,
    .legal-document li {
        font-size: 0.75rem;
        line-height: 1.8;
        margin-bottom: 1rem;
    }
    
    .legal-document ul {
        margin: 0.8rem 0;
        padding-left: 1.5rem;
    }
    
    .legal-document li {
        margin-bottom: 0.6rem;
    }
    
    .last-updated {
        font-size: 0.7rem;
        margin-bottom: 1.5rem;
    }
    
    .back-link {
        margin-top: 2rem;
    }
    
    .back-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.7rem;
        min-height: 44px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: block;
        text-align: center;
    }
}

/* Footer样式 */
.site-footer {
    margin-top: 2rem;
    padding: 0.5rem 0 0.3rem 0;
    flex-shrink: 0;
}

.dark-mode .site-footer {
    border-top-color: #2a2a3a;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
    margin-bottom: 10px;
}

.footer-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #5a5a5a;
    text-decoration: none;
    font-family: "Press Start 2P", cursive;
    font-size: 0.6rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: #8bb8e8;
    border-bottom-color: #8bb8e8;
}

.dark-mode .footer-link {
    color: #e0e0e0;
}

.dark-mode .footer-link:hover {
    color: #a18cd1;
    border-bottom-color: #a18cd1;
}

.footer-divider {
    color: #888;
    font-family: "Press Start 2P", cursive;
    font-size: 0.8rem;
}

.dark-mode .footer-divider {
    color: #aaa;
}

.footer-copyright {
    color: #888;
    font-family: "Press Start 2P", cursive;
    font-size: 0.5rem;
    line-height: 1.6;
}

.footer-copyright p {
    margin: 0;
}

.dark-mode .footer-copyright {
    color: #aaa;
}

/* 响应式调整 - Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 1.5rem 0 1rem 0;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-divider {
        display: none;
    }
    
    .footer-link {
        font-size: 0.7rem;
    }
    
    .footer-copyright {
        font-size: 0.6rem;
    }
}

/* Blog Styles */
.blog-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-subtitle {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.dark-mode .blog-subtitle {
    color: #aaa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid #e8e5d8;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #8bb8e8;
}

.dark-mode .blog-card {
    background-color: #2d2d4d;
    border-color: #3d3d5d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .blog-card:hover {
    border-color: #a18cd1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.7rem;
    color: #666;
}

.dark-mode .blog-card-header {
    color: #aaa;
}

.blog-date {
    font-family: "Press Start 2P", cursive;
}

.blog-read-time {
    font-family: "Press Start 2P", cursive;
    color: #8bb8e8;
}

.dark-mode .blog-read-time {
    color: #a18cd1;
}

.blog-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-title a {
    color: #5a5a5a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #8bb8e8;
}

.dark-mode .blog-title a {
    color: #e0e0e0;
}

.dark-mode .blog-title a:hover {
    color: #a18cd1;
}

.blog-excerpt {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1rem;
}

.dark-mode .blog-excerpt {
    color: #ccc;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-tag {
    background-color: #8bb8e8;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-family: "Press Start 2P", cursive;
    letter-spacing: 0;
}

.dark-mode .blog-tag {
    background-color: #a18cd1;
}

/* Blog Post Styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 2rem;
    color: #666;
}

.breadcrumb a {
    color: #8bb8e8;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.dark-mode .breadcrumb {
    color: #aaa;
}

.dark-mode .breadcrumb a {
    color: #a18cd1;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid #e8e5d8;
    padding-bottom: 2rem;
}

.dark-mode .blog-post-header {
    border-bottom-color: #3d3d5d;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.7rem;
    color: #666;
}

.dark-mode .blog-post-meta {
    color: #aaa;
}

.blog-post-read-time {
    color: #8bb8e8;
}

.dark-mode .blog-post-read-time {
    color: #a18cd1;
}

.blog-post h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post-subtitle {
    font-size: 1rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 0;
}

.dark-mode .blog-post-subtitle {
    color: #aaa;
}

.blog-post-content {
    line-height: 1.8;
    font-size: 0.9rem;
}

.blog-post-content h2 {
    font-size: 1.3rem;
    margin: 2.5rem 0 1rem 0;
    color: #8bb8e8;
    border-bottom: 2px solid #8bb8e8;
    padding-bottom: 0.5rem;
}

.dark-mode .blog-post-content h2 {
    color: #a18cd1;
    border-bottom-color: #a18cd1;
}

.blog-post-content h3 {
    font-size: 1.1rem;
    margin: 2rem 0 1rem 0;
    color: #5a8bc8;
}

.dark-mode .blog-post-content h3 {
    color: #7aa7d8;
}

.blog-post-content h4 {
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem 0;
    color: #666;
}

.dark-mode .blog-post-content h4 {
    color: #ccc;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content ul, .blog-post-content ol {
    margin: 1rem 0 1.5rem 0;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.blog-post-content a {
    color: #8bb8e8;
    text-decoration: none;
    border-bottom: 1px solid #8bb8e8;
    transition: all 0.3s ease;
}

.blog-post-content a:hover {
    color: #7aa7d8;
    border-bottom-color: #7aa7d8;
}

.dark-mode .blog-post-content a {
    color: #a18cd1;
    border-bottom-color: #a18cd1;
}

.dark-mode .blog-post-content a:hover {
    color: #917cbf;
    border-bottom-color: #917cbf;
}

.blog-post-content blockquote {
    background-color: #f5f5f5;
    border-left: 4px solid #8bb8e8;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.dark-mode .blog-post-content blockquote {
    background-color: #3d3d5d;
    border-left-color: #a18cd1;
}

.blog-post-content pre {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.4;
}

.dark-mode .blog-post-content pre {
    background-color: #2a2a2a;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

.blog-post-content code {
    background-color: #f0f0f0;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85em;
}

.dark-mode .blog-post-content code {
    background-color: #3a3a3a;
    color: #e0e0e0;
}

.blog-post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e8e5d8;
}

.dark-mode .blog-post-footer {
    border-top-color: #3d3d5d;
}

.blog-post-tags {
    margin-bottom: 2rem;
}

.blog-post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.blog-post-nav a {
    color: #8bb8e8;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border: 2px solid #8bb8e8;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.blog-post-nav a:hover {
    background-color: #8bb8e8;
    color: #fff;
    transform: translateY(-2px);
}

.dark-mode .blog-post-nav a {
    color: #a18cd1;
    border-color: #a18cd1;
}

.dark-mode .blog-post-nav a:hover {
    background-color: #a18cd1;
}

.back-to-blog {
    text-align: left;
}

.next-post, .prev-post {
    text-align: right;
}

/* Special Blog Components */
.user-review {
    background-color: #f9f9f9;
    border-left: 4px solid #8bb8e8;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.dark-mode .user-review {
    background-color: #3a3a3a;
    border-left-color: #a18cd1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.review-rating {
    color: #ffcc00;
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #e8e5d8;
}

.dark-mode .stat-item {
    background-color: #3d3d5d;
    border-color: #4d4d6d;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #8bb8e8;
    margin-bottom: 0.5rem;
}

.dark-mode .stat-number {
    color: #a18cd1;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.dark-mode .stat-label {
    color: #aaa;
}

.tip-box, .challenge-box {
    background-color: #e8f4f8;
    border: 2px solid #8bb8e8;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.dark-mode .tip-box, .dark-mode .challenge-box {
    background-color: #2a2a4a;
    border-color: #a18cd1;
}

.performance-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.performance-table th,
.performance-table td {
    border: 1px solid #e0e0e0;
    padding: 0.8rem;
    text-align: left;
    font-size: 0.8rem;
}

.performance-table th {
    background-color: #8bb8e8;
    color: #fff;
    font-weight: bold;
}

.dark-mode .performance-table th {
    background-color: #a18cd1;
}

.dark-mode .performance-table th,
.dark-mode .performance-table td {
    border-color: #4a4a4a;
}

.dark-mode .performance-table td {
    background-color: #3a3a3a;
}

.browser-tips h4 {
    color: #8bb8e8;
    margin-top: 1.5rem;
}

.dark-mode .browser-tips h4 {
    color: #a18cd1;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.shortcut-item {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #8bb8e8;
}

.dark-mode .shortcut-item {
    background-color: #3a3a3a;
    border-left-color: #a18cd1;
}

.shortcut-item strong {
    display: block;
    color: #8bb8e8;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
}

.dark-mode .shortcut-item strong {
    color: #a18cd1;
}

.shortcut-item span {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
}

.dark-mode .shortcut-item span {
    color: #ccc;
}

.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.issue-solution {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
}

.dark-mode .issue-solution {
    background-color: #3a3a2a;
    border-color: #ffcc00;
}

.issue-solution h4 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.dark-mode .issue-solution h4 {
    color: #ffcc00;
}

.checklist ul {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    padding: 0.3rem 0;
    font-size: 0.85rem;
}

/* Responsive Blog Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-container,
    .blog-post {
        padding: 0 1rem;
    }
    
    /* 博客网格移动端优化 */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .blog-card {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 400px;
        border-radius: 8px;
    }
    
    .blog-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        margin-bottom: 1rem;
    }
    
    .blog-title {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .blog-excerpt {
        font-size: 0.75rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .blog-tags {
        gap: 0.3rem;
    }
    
    .blog-tag {
        font-size: 0.55rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* 博客文章页面移动端优化 */
    .blog-post h1 {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .blog-post-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .blog-post-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .blog-post-content {
        font-size: 0.8rem;
        line-height: 1.7;
    }
    
    .blog-post-content h2 {
        font-size: 1.1rem;
        margin: 2rem 0 1rem 0;
    }
    
    .blog-post-content h3 {
        font-size: 1rem;
        margin: 1.5rem 0 0.8rem 0;
    }
    
    .blog-post-content h4 {
        font-size: 0.9rem;
        margin: 1.2rem 0 0.6rem 0;
    }
    
    .blog-post-content p {
        margin-bottom: 1.2rem;
    }
    
    .blog-post-content ul,
    .blog-post-content ol {
        margin: 1rem 0 1.2rem 0;
        padding-left: 1.5rem;
    }
    
    .blog-post-content li {
        margin-bottom: 0.4rem;
        font-size: 0.8rem;
        line-height: 1.6;
    }
    
    .blog-post-nav {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .blog-post-nav a {
        padding: 0.8rem 1.5rem;
        font-size: 0.7rem;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 面包屑导航移动端优化 */
    .breadcrumb {
        font-size: 0.7rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    /* 特殊组件移动端优化 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .shortcuts-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .shortcut-item {
        padding: 0.8rem;
    }
    
    .shortcut-item strong {
        font-size: 0.7rem;
    }
    
    .shortcut-item span {
        font-size: 0.65rem;
    }
    
    .troubleshooting-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .issue-solution {
        padding: 1rem;
    }
    
    .user-review {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .review-header {
        font-size: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .tip-box,
    .challenge-box {
        padding: 1rem;
        margin: 1rem 0;
    }
}

/* ==========================================
   Images to GIF 页面专用样式
   ========================================== */

/* CSS变量定义 */
:root {
    --primary-color: #3a3a3a;
    --text-primary: #3a3a3a;
    --text-secondary: #6c757d;
    --accent-color: #8bb8e8;
    --accent-light: #e3f2fd;
    --accent-dark: #7aa7d8;
    --bg-secondary: #f8f9fa;
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* 暗黑模式变量 */
.dark-mode {
    --primary-color: #e9ecef;
    --text-primary: #e9ecef;
    --text-secondary: #adb5bd;
    --accent-color: #8bb8e8;
    --accent-light: rgba(139, 184, 232, 0.1);
    --accent-dark: #7aa7d8;
    --bg-secondary: #2c2c2c;
    --border-color: #495057;
    --border-light: #404040;
    --shadow-color: rgba(255, 255, 255, 0.1);
}

/* 页面头部 */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.page-header h1 {
    font-size: 1.4rem;
    margin: 0 0 1.5rem 0;
    color: #5a5a5a;
    text-shadow: 2px 2px 0px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: "Press Start 2P", cursive;
}

.page-subtitle {
    font-size: 0.95rem;
    color: #888;
    margin: 0;
    font-weight: 400;
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 区域标题 */
.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    text-shadow: 1px 1px 0px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: "Press Start 2P", cursive;
}

.section-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.85rem;
}

/* 上传区域 */
.upload-section {
    margin-bottom: 3rem;
}

.upload-area {
    border: 3px dashed #5f6264;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background-color: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}

/* 有图片时的upload-area样式 - 自适应大小 */
.upload-area.has-images {
    min-height: auto;
    padding: 1.5rem;
    gap: 1rem;
    cursor: default;
}

.upload-area.has-images:hover {
    transform: none;
    box-shadow: none;
    border-color: #5f6264;
    background-color: transparent;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent-color);
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 184, 232, 0.2);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.upload-icon svg {
    fill: var(--text-secondary);
    transition: fill 0.3s ease;
}

.upload-area:hover .upload-icon svg {
    fill: var(--accent-color);
}

.upload-text {
    line-height: 1.5rem;
    margin: 0;
}

.upload-primary {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.upload-secondary {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(139, 184, 232, 0.3);
    margin: 0 auto;
    display: block;
    font-family: "Press Start 2P", cursive;
}

.upload-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 184, 232, 0.4);
}

/* 图片预览网格 - 集成在upload-area内 */
.preview-grid {
    display: none;
    flex-wrap: wrap;
    gap: 1rem;
    width: fit-content;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    justify-content: flex-start;
    align-items: flex-start;
}

.preview-grid.has-images {
    display: flex;
}

.preview-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background-color: white;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: move;
    aspect-ratio: 1;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: pixelated;
}

.preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.preview-item .remove-btn:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.preview-item .image-name {
    padding: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: rgba(248, 249, 250, 0.9);
}

/* 继续添加图片按钮样式 */
.add-more-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.add-more-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
    background-color: var(--accent-light);
}

.add-more-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.add-more-item:hover .add-more-btn {
    background-color: var(--accent-dark);
    transform: scale(1.1);
}

.add-more-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 600;
    font-family: "Press Start 2P", cursive;
}

.add-more-item:hover .add-more-text {
    color: var(--accent-color);
}

/* 参数设置区域 */
.parameter-section {
    margin-bottom: 1.5rem;
}

.parameter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: end;
    justify-content: center;
    margin-bottom: 1rem;
}

.parameter-group {
    display: flex;
    flex-direction: column;
    width: 150px;
    min-width: 150px;
}

.parameter-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.parameter-group input,
.parameter-group select {
    padding: 0.4rem 0.6rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    color: #646464;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    width: 100%;
    height: 36px;
    box-sizing: border-box;
}

.parameter-group input:focus,
.parameter-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(139, 184, 232, 0.15);
}

.parameter-group input:hover,
.parameter-group select:hover {
    border-color: var(--accent-light);
}

/* 生成按钮区域 */
.generate-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 3rem 0;
}

.generate-button {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    position: relative;
    min-width: 180px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Press Start 2P", cursive;
}

.generate-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.generate-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
}

.generate-button .button-text {
    text-align: center;
    width: 100%;
}

.button-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 结果区域 */
.result-section {
    margin-bottom: 3rem;
}

.result-container {
    background-color: transparent;
    border: 2px solid #5f6264;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-placeholder {
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.placeholder-icon svg {
    fill: var(--text-secondary);
    opacity: 0.5;
}

.result-gif {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    image-rendering: pixelated;
}

/* 结果操作区域 */
.result-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.gif-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.download-section {
    display: flex;
    gap: 1rem;
}

.download-button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    font-family: "Press Start 2P", cursive;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.regenerate-button {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: "Press Start 2P", cursive;
}

.regenerate-button:hover {
    color: var(--text-primary);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem 1rem;
    }
    
    .page-header h1 {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 0.5rem;
        line-height: 1.4;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
        line-height: 1.6 !important;
        margin-top: 0.8rem;
        padding: 0 0.5rem;
        text-align: center;
    }
    
    /* 参数设置区域移动端优化 */
    .parameter-grid {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
    }
    
    .parameter-group {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }
    
    .parameter-group label {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .parameter-group input,
    .parameter-group select {
        height: 48px; /* 触控友好高度 */
        font-size: 0.9rem;
        padding: 0.8rem;
        border-radius: 6px;
    }
    
    /* 生成按钮移动端优化 */
    .generate-button {
        min-width: 100%;
        max-width: 280px;
        min-height: 56px;
        font-size: 0.8rem;
        padding: 1rem 2rem;
    }
    
    /* 上传区域移动端优化 */
    .upload-area {
        min-height: 180px;
        padding: 1.5rem;
    }
    
    .upload-area.has-images {
        min-height: auto;
        padding: 1rem;
    }
    
    .upload-button {
        min-height: 48px;
        font-size: 0.8rem;
        padding: 1rem 1.5rem;
    }
    
    /* 图片预览网格移动端优化 */
    .preview-item {
        width: 80px;
        height: 80px;
    }
    
    .add-more-item {
        width: 80px;
        height: 80px;
    }
    
    .preview-item .image-name {
        font-size: 0.6rem;
        padding: 0.2rem;
    }
    
    .add-more-text {
        font-size: 0.6rem;
    }
    
    /* 结果区域移动端优化 */
    .result-container {
        min-height: 200px;
        padding: 1.5rem;
    }
    
    .result-actions {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .gif-info {
        justify-content: center;
        gap: 1rem;
    }
    
    .info-item {
        min-width: 80px;
    }
    
    .info-label {
        font-size: 0.7rem;
    }
    
    .info-value {
        font-size: 0.9rem;
    }
    
    .download-section {
        justify-content: center;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }
    
    .download-button,
    .regenerate-button {
        width: 100%;
        max-width: 280px;
        min-height: 48px;
        font-size: 0.8rem;
        margin: 0 auto;
    }
}

/* 小屏幕设备额外优化 */
@media (max-width: 480px) {
    /* 基础布局 */
    body {
        padding: 2px;
        font-size: 12px;
        overflow-x: hidden;
    }

    .wrap {
        margin-top: 60px;
        padding: 0 0.5rem;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    h1 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }

    /* 小屏幕副标题优化 */
    h2 {
        line-height: 1.7 !important;
        font-size: 0.9rem;
        padding: 0 0.5rem;
        margin: 1rem 0;
    }

    .page-subtitle {
        font-size: 0.85rem !important;
        line-height: 1.7 !important;
        margin: 1rem 0;
        padding: 0 0.3rem;
    }

    /* Images to GIF 页面优化 */
    .main-content {
        padding: 0 0.5rem;
    }
    
    .upload-area {
        padding: 1.2rem;
        min-height: 140px;
        gap: 1rem;
    }
    
    .upload-area.has-images {
        padding: 0.8rem;
    }

    .upload-primary {
        font-size: 0.9rem;
    }

    .upload-secondary {
        font-size: 0.7rem;
    }
    
    .parameter-grid {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .parameter-group {
        width: 100%;
        max-width: 260px;
        min-width: auto;
    }

    .parameter-group label {
        font-size: 0.6rem;
    }

    .parameter-group input,
    .parameter-group select {
        font-size: 0.8rem;
        height: 44px;
    }

    .generate-button {
        font-size: 0.7rem;
        padding: 0.8rem 1.5rem;
        max-width: 260px;
    }
    
    .result-container {
        padding: 1.2rem;
        min-height: 180px;
    }

    .result-placeholder p {
        font-size: 0.8rem;
    }
    
    .download-section {
        flex-direction: column;
        gap: 0.8rem;
    }

    .download-button,
    .regenerate-button {
        max-width: 260px;
        font-size: 0.7rem;
        padding: 0.8rem 1.2rem;
    }

    /* 首页小屏幕优化 */
    .example-section {
        margin: 1.5rem 0;
        gap: 1.2rem;
    }

    .example-item {
        max-width: 260px;
    }

    .example-gif {
        max-width: 100px;
        max-height: 100px;
    }

    .example-sprite {
        max-height: 60px;
    }

    .upload-label,
    .generate-sprite-button {
        max-width: calc(100vw - 1rem); /* 适应屏幕宽度 */
        font-size: 0.75rem !important; /* 增大字体 */
        padding: 0.8rem 1.2rem;
        width: auto;
        margin: 0 0.5rem; /* 左右留边距 */
        box-sizing: border-box;
    }

    .frames-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
        gap: 0.6rem;
        padding: 0.8rem 0.3rem;
        max-width: calc(100vw - 0.6rem);
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        margin: 0 auto;
        justify-items: center;
    }

    /* Footer 小屏幕优化 */
    .site-footer {
        padding: 1rem 0 0.8rem 0;
    }

    .footer-content {
        padding: 0 0.5rem;
    }

    .footer-link {
        font-size: 0.6rem;
    }

    .footer-copyright {
        font-size: 0.55rem;
    }

    /* 按钮和触控优化 */
    .help-button,
    .back-to-top,
    .theme-toggle,
    .mobile-nav-toggle {
        width: 44px;
        height: 44px;
        padding: 10px;
    }

    .mobile-nav-toggle {
        right: 60px;
    }

    /* 博客页面小屏幕优化 */
    .blog-card {
        max-width: 100%;
        padding: 1.2rem;
    }

    .blog-title {
        font-size: 0.8rem;
    }

    .blog-excerpt {
        font-size: 0.7rem;
    }

    .blog-tag {
        font-size: 0.5rem;
        padding: 0.2rem 0.4rem;
    }

    /* FAQ 小屏幕优化 */
    .faq-question {
        padding: 1rem;
        font-size: 0.7rem;
        min-height: 56px;
    }

    .faq-answer p,
    .faq-answer li {
        font-size: 0.65rem;
    }

    /* 法律文档小屏幕优化 */
    .legal-document {
        padding: 0.8rem;
    }

    .legal-document h1 {
        font-size: 1.2rem;
    }

    .legal-document h2 {
        font-size: 0.9rem;
    }

    .legal-document p,
    .legal-document li {
        font-size: 0.7rem;
    }

    .back-button {
        max-width: 260px;
        font-size: 0.65rem;
    }

    /* 小屏幕移动端导航优化 */
    .mobile-nav-link {
        font-size: 0.9rem !important;
        padding: 0.8rem 1.2rem !important;
        letter-spacing: 0.5px !important;
        min-height: 52px;
        width: 260px;
        max-width: calc(100vw - 3rem);
    }

    .mobile-nav-links {
        gap: 1.2rem;
        padding: 0 1.5rem;
        max-width: calc(100vw - 1rem);
    }
}

/* FAQ Section Styles */
.faq-section {
    margin: 3rem 0 2rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: white;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dark-mode .faq-item {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.faq-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(139, 184, 232, 0.15);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.2rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Press Start 2P", cursive;
    font-size: 0.8rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    line-height: 1.4;
}

.faq-question:hover {
    background-color: var(--accent-light);
}

.faq-question span {
    flex: 1;
    margin-right: 1rem;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(248, 249, 250, 0.5);
}

.dark-mode .faq-answer {
    background-color: rgba(45, 45, 77, 0.5);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.2rem;
}

.faq-answer p {
    margin: 0 0 1rem 0;
    font-family: "Press Start 2P", cursive;
    font-size: 0.7rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    font-family: "Press Start 2P", cursive;
    font-size: 0.7rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.faq-answer li:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--accent-color);
}

.faq-answer em {
    color: var(--text-primary);
    font-style: normal;
    font-weight: 600;
}

.faq-answer ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Responsive FAQ Styles */
@media (max-width: 768px) {
    .faq-section {
        padding: 0 1rem;
        margin: 2rem 0 1rem 0;
    }
    
    .faq-container {
        gap: 0.8rem;
    }
    
    .faq-item {
        border-radius: 6px;
        margin: 0;
    }
    
    .faq-question {
        padding: 1.2rem;
        font-size: 0.75rem;
        line-height: 1.5;
        min-height: 60px;
        align-items: flex-start;
    }
    
    .faq-question span {
        margin-right: 0.8rem;
        flex: 1;
    }
    
    .faq-icon {
        margin-top: 0.2rem;
        flex-shrink: 0;
    }
    
    .faq-item.active .faq-answer {
        padding: 1.2rem;
        max-height: 600px;
    }
    
    .faq-answer {
        padding: 0 1.2rem;
    }
    
    .faq-answer p,
    .faq-answer li {
        font-size: 0.7rem;
        line-height: 1.7;
        margin-bottom: 0.8rem;
    }
    
    .faq-answer ul,
    .faq-answer ol {
        margin: 0.8rem 0;
        padding-left: 1.2rem;
    }
    
    .faq-answer li {
        margin-bottom: 0.6rem;
    }
    
    .faq-answer strong {
        color: var(--accent-color);
        font-weight: normal;
    }
    
    .faq-answer em {
        font-style: normal;
        font-weight: 600;
    }
}