@font-face {
    font-family: 'PixelFont';
    src: url('imgs/pixel12.ttf') format('truetype');
    font-display: block;
    font-weight: normal;
    font-style: normal;
}

/* GALLERY链接特殊样式 */
.gallery-text-link {
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(93, 86, 156, 0.2) !important;
}

.gallery-text-link:active {
    background-color: rgba(93, 86, 156, 0.2) !important;
}

/* GALLERY文本和图标分离样式 */
.gallery-text {
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(93, 86, 156, 0.2) !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.gallery-text:active {
    background-color: rgba(93, 86, 156, 0.2) !important;
}

.dropdown-icon-container {
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(93, 86, 156, 0.2) !important;
}

.dropdown-icon-container:active {
    background-color: rgba(93, 86, 156, 0.3) !important;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 桌面端鼠标样式 */
@media (min-width: 1025px) {
    * {
        cursor: none !important;  /* 只在桌面端隐藏默认光标 */
    }

    .custom-cursor {
        width: 32px;
        height: 32px;
        background: url('imgs/mouse.gif') no-repeat;
        background-size: 100%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        top: 0;
        left: 0;
        transform: translate(0, 0);
        will-change: transform;
        opacity: 0;
        transition: opacity 0.2s;
    }

    /* 只在桌面端对输入框使用文本光标 */
    input[type="text"], 
    input[type="email"],
    textarea {
        cursor: text !important;
    }
}

/* 移动端隐藏自定义光标 */
@media (max-width: 1024px) {
    .custom-cursor {
        display: none !important;
    }
}

/* 恢复基础样式 */
body {
    background-color: #000000;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* 导航栏基础样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 0 20px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-brand h1 {
    color: #FFFFFF;
    font-size: 26px;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: normal;
    letter-spacing: normal;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    color: #5D569C;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: normal;
    letter-spacing: normal;
    transition: opacity 0.3s;
    cursor: pointer;
}

.dropdown-toggle:hover {
    color: #5D569C;
}

.dropdown-icon {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.95);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 15px !important;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: rgba(93, 86, 156, 0.3);
    padding-left: 25px;
}

/* 主视觉横幅样式 */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: top;
}

.hero-content {
    position: relative;
    width: 100%;
    z-index: 2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

/* 最新更新样式 */
.latest-updates {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.latest-updates h2 {
    color: #5D569C;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.updates-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.update-item {
    background: #111;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.update-item:hover {
    background: #222;
}

.update-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: white;
}

.chapter-info {
    font-size: 1rem;
}

.update-time {
    color: #808080;
    font-size: 0.9rem;
}

/* 移除旧的更新卡片式 */
.update-card {
    display: none;
}

/* 主体内容 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.chapter-item {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.chapter-item:hover {
    transform: scale(1.02);
}

.chapter-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* 连载中状态的颜色 - 深蓝色 */
.ongoing {
    background: #185070;
}

.social-links a {
    color: #FFFFFF;
    margin-right: 1rem;
    font-size: 1.5rem;
}

/* 应式设计 */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
    -webkit-appearance: none; /* 修复iOS上的按钮显示问题 */
    appearance: none;
    outline: none;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #ffffff; /* 纯白色 */
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    -webkit-transform: none; /* 确保在iOS上正确显示 */
    transform: none;
}

/* 移动菜单按钮动画效果 */
.mobile-menu-btn.active span:nth-child(1) {
    -webkit-transform: rotate(45deg) translate(5px, 6px);
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    -webkit-transform: rotate(-45deg) translate(5px, -6px);
    transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        width: 36px;     /* 减小按钮整体尺寸 */
        height: 36px;
        margin-right: 5px;
        padding: 6px;    /* 减小内边距 */
        z-index: 1001;   /* 确保按钮始终位于顶层 */
        touch-action: manipulation; /* 优化触摸响应 */
        -webkit-tap-highlight-color: transparent; /* 移除iOS点击高亮 */
    }
    
    .mobile-menu-btn span {
        width: 22px;     /* 减小线条宽度 */
        height: 2px;     /* 减小线条高度 */
        margin: 4px auto; /* 减小间距 */
        background-color: #ffffff !important; /* 确保iOS上显示白色 */
        position: relative; /* 帮助iOS识别元素 */
    }
    
    /* 优化动画效果 */
    .mobile-menu-btn.active span:nth-child(1) {
        -webkit-transform: rotate(45deg) translate(4px, 5px);
        transform: rotate(45deg) translate(4px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        -webkit-transform: rotate(-45deg) translate(4px, -5px);
        transform: rotate(-45deg) translate(4px, -5px);
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    /* 移动端下拉菜单样式 */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 180px; /* 减小宽度 */
        background-color: rgba(0, 0, 0, 0.7); /* 增加透明度 */
        z-index: 1000;
        padding: 5px 0; /* 减少上下内边距 */
        border-radius: 0 0 0 8px; /* 增加圆角 */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* 弱化阴影效果 */
        backdrop-filter: blur(8px); /* 减轻毛玻璃效果 */
        -webkit-backdrop-filter: blur(8px); /* Safari支持 */
        animation: fadeInMenu 0.2s ease-out; /* 添加入场动画 */
    }
    
    /* 改进导航菜单项的垂直对齐 */
    .nav-links .nav-item {
        width: 100%;
        position: relative;
    }
    
    .nav-links .nav-link {
        display: flex !important;
        align-items: center !important;
        padding: 8px 15px !important;
        height: auto !important;
        min-height: 36px !important;
    }
    
    /* 特别处理最后几个菜单项，确保足够间距 */
    .nav-links .nav-item:nth-last-child(-n+2) {
        margin-top: 2px;
    }
    
    .nav-links .nav-item:last-child {
        margin-bottom: 2px;
    }
    
    /* 菜单项入场动画 */
    @keyframes fadeInMenu {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-links a, .dropdown-toggle {
        padding: 8px 15px; /* 减少内边距，使项目更紧凑 */
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* 更淡的边框 */
        font-size: 16px; /* 调整字体大小 */
        transition: all 0.2s ease; /* 添加过渡效果 */
    }
    
    .nav-links a:active, .dropdown-toggle:active {
        background-color: rgba(93, 86, 156, 0.2); /* 点击时的背景色 */
    }
    
    .dropdown {
        width: 100%;
    }
    
    /* 移动端自动展开子菜单的样式优化 */
    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        width: 100%;
        background-color: rgba(40, 40, 40, 0.7); /* 调整子菜单背景透明度 */
        transition: none;
        min-width: auto;
        border-radius: 0;
        margin-top: 0; /* 确保没有顶部间距 */
        margin-bottom: 0; /* 确保没有底部间距 */
    }
    
    /* 子菜单展开状态 */
    .dropdown.active .dropdown-menu {
        display: block;
        animation: fadeInSubmenu 0.2s ease-out; /* 添加子菜单入场动画 */
        margin-top: 0; /* 确保与父菜单无缝衔接 */
        max-height: none; /* 确保子菜单不受高度限制 */
        overflow: visible; /* 防止内容被截断 */
    }
    
    /* 子菜单入场动画 */
    @keyframes fadeInSubmenu {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    /* 子菜单项样式 - 缩进效果 */
    .dropdown-item {
        padding-left: 25px; /* 增加左侧缩进 */
        padding-top: 6px; /* 减小上下内边距 */
        padding-bottom: 6px;
        border-bottom: none;
        font-size: 14px; /* 子菜单项字体更小 */
        background-color: rgba(30, 30, 30, 0.5); /* 稍微暗一点的背景，区分层级 */
        transition: background-color 0.2s ease; /* 平滑过渡效果 */
    }
    
    /* 点击子菜单项时的视觉反馈 */
    .dropdown-item:active {
        background-color: rgba(93, 86, 156, 0.4) !important; /* 更明显的点击反馈 */
    }

    /* 汉堡按钮展开时，确保所有下拉菜单的图标旋转 */
    .nav-links.active .dropdown-icon-container i,
    .nav-links.active .dropdown .dropdown-icon {
        transform: rotate(180deg);
    }
}

/* 在已有的样式基础上添加 */
.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    color: #FFFFFF;
    margin-right: 1.5rem;
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #5D569C;
}

/* Ko-fi图标特殊样式 */
.social-links .fa-coffee {
    color: #FF5E5B;
}

.social-links .fa-coffee:hover {
    color: #ff8683;
}

/* Discord图标特殊样式 */
.social-links .fa-discord {
    color: #915578;
}

.social-links .fa-discord:hover {
    color: #5D569C;
    transform: translateY(-2px) scale(1.1); /* 添加上浮和放大效果 */
}

/* 在现有式文件末尾添加 */
.manga-reader {
    margin-top: 80px;
    padding: 20px;
    max-width: 800px;  /* 控制漫画最大宽度 */
    margin-left: auto;
    margin-right: auto;
    background: #000;
}

.chapter-title {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
}

.manga-pages {
    display: flex;
    flex-direction: column;
    gap: 10px;  /* 页面之间的间距 */
    align-items: center;
}

.manga-pages img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.chapter-navigation {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 1000;
}
/* 翻页航按钮的基本样式 */
.nav-button {
    cursor: pointer;
    border: none;
    background: #5D569C;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

/* 鼠标放到翻页按钮上时的样式 */
.nav-button:hover {
    background: #4A4580;
}

/* 当不能点击时的样式 */
.nav-button:disabled {
    background: #666;
    cursor: not-allowed;
}

/* 在手机等小屏幕设备上的按钮样式 */
@media (max-width: 768px) {
    .nav-button {
        padding: 6px 12px;  /* 在手机上按钮稍微小一点 */
        /* 这删了font-size设置，这样箭头在手机上保持原来的大小 */
    }
}

/* 添加返回顶样 */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(93, 86, 156, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.scroll-top:hover {
    background: rgba(93, 86, 156, 1);
    transform: translateY(-3px);
}

/* 添加完成状态样式 */
.completed {
    background: #6768AB;
}

/* 更章节列样式 */
.chapters-section {
    width: 100%;
}

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

.chapter-item {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.chapter-link {
    display: block;
    text-decoration: none;
    color: white;
}

.chapter-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.chapter-info {
    padding: 1rem;
}

.chapter-info h3 {
    margin-bottom: 0.5rem;
}

/* 美化描述文 */
.description p {
    margin-bottom: 1rem;
    line-height: 1.8;
} 

/* 阅读选项区域样 */
.read-options {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.read-options h2 {
    text-align: center;
    color: #5D569C;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* 版权提示区域样式 */
.copyright-notice {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #1a1a1a !important;  /* 使用更暗的背景色并强制应用 */
    border-radius: 8px;
}

.copyright-notice p {
    color: #e6e6e6 !important;  /* 确保文字颜色更亮并强制应用 */
    font-size: 1rem;
    margin: 0;
}

/* 阅读模式选择区域 */
.reading-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mode-section {
    background: #111;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.mode-section h3 {
    color: #5D569C;
    margin-bottom: 1rem;
}

.mode-section p {
    color: #e6e6e6;
    margin-bottom: 1.5rem;
}

/* 语言按钮样式 */
.language-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lang-button {
    display: block;
    padding: 0.8rem;
    background: #414040;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
/* 选择按调整 钮放上去的颜色！*/
.lang-button:hover {
    background: #5D569C;
}

/* 归档按样式 */
.archive-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #5D569C;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.archive-button:hover {
    background: #4A4580;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .reading-modes {
        grid-template-columns: 1fr;
    }
}

/* About页面样式 */
.about-content {
    margin-top: 80px;
    padding: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-header {
    width: 100%;
    margin-bottom: 2rem;
}

.about-banner {
    width: 100%;
    height: auto;
    display: block;
}

.about-content h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.artist-description {
    max-width: 400px;  /* 控制文字块的宽度 */
    margin: 0 auto;    /* 让文字块居中 */
    line-height: 1.8;
    text-align: left;  /* 文字左对齐 */
}

.artist-description p {
    margin-bottom: 0.5rem;
}

.artist-description p:last-child {
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .about-content {
        padding: 1rem;
    }
    
    .artist-info {
        padding: 0;
    }
}

/* 归档页面式 */
.archive-content {
    margin-top: 80px;
    padding: 2rem;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
} 

/* 在现有样式文件末尾添加 */
.single-page .manga-page {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    min-height: 500px;
}

.single-page .manga-page img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.page-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

#pageCounter {
    min-width: 100px;
    text-align: center;
    font-size: 1.1em;
    color: white;
}


/* page by page 向右放上去的颜色*/
.nav-button:hover {
    background: #4A4580;
}

.nav-button:disabled {
    background: #666;
    cursor: not-allowed;
} 

/* 添加到样式文件中 */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: #5D569C;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #4A4580;
} 

/* Contact页面样式 */
.contact-content {
    margin-top: 60px;
    padding: 0;
    max-width: 800px;  /* 改回更合适的宽度 */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.contact-header {
    width: 100%;
    margin-bottom: 2rem;
    padding: 0 1rem;  /* 减小内边距 */
}

.contact-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-width: 800px;  /* 限制图片最大宽度 */
    margin: 0 auto;  /* 居中显示 */
    border-radius: 8px;  /* 添加圆角与 about 页面保持一致 */
}

.contact-form {
    background: #111;
    padding: 2rem;
    border-radius: 8px;
    margin: 0 1rem;  /* 减小边距 */
    width: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #333;
    border-radius: 4px;
    background: #222;
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5D569C;
}

.submit-button {
    background: #5D569C;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #4A4580;
}

/* 表验证样式 */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #ff4444;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #28a745;
} 

/* About页面新样式 */
.about-banner {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* 页脚样式 */
.site-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    background: #111;
}

.site-footer p {
    color: #808080;
    font-size: 0.9rem;
} 

/* 博客页面样式 */
.blog-content {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

.blog-card {
    background: #111;
    padding: 2rem;
    border-radius: 8px;
    color: white;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    background: #222;
}

.blog-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #5D569C;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.blog-button:hover {
    background: #4A4580;
}

.blog-card h2 {
    margin-bottom: 1rem;
    color: #5D569C;
}

.blog-card p {
    margin-bottom: 1.5rem;
    color: #808080;
} 

/* 响应式调整 */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .chapter-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
} 

/* 阅读页面的主容样式 */
.read-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: center;
}

/* 版本选择域样式 */
.version-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

/* 每个语言版本块的样式 */
.version-block {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 10px;
}

/* 章节网格布局 */
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* 章节按钮样式 */
.chapter-button {
    display: block;
    padding: 0.8rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.chapter-button:hover {
    background-color: #555;
}

/* 版本标题式 */
.version-block h2 {
    margin-bottom: 1rem;
    color: #333;
} 

/* 语言版本选择区域样式 */
.version-selector {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
}

.version-selector h2 {
    margin-bottom: 2rem;
    color: #5D569C;
}

.version-block {
    background: #111;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.version-block h3 {
    color: #5D569C;
    margin-bottom: 1rem;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.chapter-button {
    display: block;
    padding: 0.8rem;
    background: #222;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.chapter-button:hover {
    background: #333;
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
} 

/* ====== 语言选择弹窗的样式 ====== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

/* 弹窗内容的样式 */
.modal-content {
    background: #111;
    padding: 2rem;
    border-radius: 25px;  /* 添加圆角 */
    position: relative;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

/* 语言选项按钮的样式 */
.lang-option {
    display: block;
    padding: 1rem;
    background: #414040;
    color: white;
    text-decoration: none;
    border-radius: 20px;  /* 添加圆角 */
    transition: all 0.3s ease;
}

/* 语言选择弹标文字样式 */
.modal-content h2 {
    color: #e6e6e6;  /* 改成白色，这样就能看见了！ */
    margin-bottom: 2rem;
    font-size: 1.8rem;  /* 标题大小 */
}

/* 语言选项的容器样式 */
.language-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;  /* 选项之间的间距 */
}

/* 每个语言选项按钮的样式 */
.lang-option {
    display: block;
    padding: 1rem;
    background: #414040;  /* 按钮背景色 */
    color: white;  /* 按钮文字颜色 */
    text-decoration: none;
    border-radius: 20px;  /* 添加圆角 */
    transition: all 0.3s ease;
}

/* 鼠标悬停在语言选项上的样式 */
.lang-option:hover {
    background: #5D569C;  /* 鼠标放上去时按钮成这个颜色 */
    transform: translateY(-2px);  /* 按往上动点 */
}

/* 语言名称文字 */
.lang-name {
    font-size: 1.2rem;  /* 语言文字大小 */
}

/* 关闭钮样式 */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #808080;  /* 关闭按钮颜色 */
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    border-radius: 50%;  /* 圆形关闭按钮 */
}

/* 鼠标放到关闭按钮上时的样式 */
.modal-close:hover {
    color: white;
} 

/* 首页欢迎区域样式 */
.hero-content h1 {
    font-size: 2.8rem;  /* 主标题"LONOWHO's MANGA"的大小 */
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;  /* "Welcome to my original manga series"的大小 */
    margin-bottom: 2rem;
}

/* Start Reading按钮样式 */
.cta-button {
    font-size: 1.2rem;  /* Start Reading按钮文字小 */
    padding: 1rem 2rem;  /* 按钮内边距：下1rem，左右2rem */
    background: #5D569C;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Read页面样 */
.read-options h2 {
    font-size: 2rem;  /* "Reading Options"标题大小 */
    text-align: center;
    color: #5D569C;
    margin-bottom: 1.5rem;
}

.mode-section h3 {
    font-size: 1.5rem;  /* "Page by Page"等标大小 */
    color: #5D569C;
    margin-bottom: 1rem;
}

.mode-section p {
    font-size: 1rem;  /* 阅读式描述文字大小 */
    color: #e9e2e2;
    margin-bottom: 1.5rem;
}

/* 语言选择按钮文字大小 */
.lang-button {
    font-size: 1.1rem;  /* 语言选择按钮文字大小 */
}

/* 归档按钮文字大小 */
.archive-button {
    font-size: 1.1rem;  /* View Archive按钮的文字大小 */
} 

/* 信息版块样式 */
.manga-info {
    background: #111;
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 240px;
    width: 100%;
}

.manga-info h2 {
    color: #5D569C;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.author {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* 信息区块样式 */
.info-section {
    margin-bottom: 2rem;
}

.section-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0.5rem 0 1rem;
}

.info-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* 社交媒体链接样式 */
.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    justify-content: flex-start;
}

.social-links a {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease; /* 改为 all 以同时过渡多个属性 */
}

/* Twitter图标样式 */
.social-links .fa-twitter {
    color: #2b4c88;
    font-size: 1.8rem; /* 统一图标大小 */
}

.social-links .fa-twitter:hover {
    color: #4DB5F5;
    transform: translateY(-2px) scale(1.1); /* 添加上浮和放大效果 */
}

/* Ko-fi图标样式 */
.social-links .fa-coffee {
    color: #915578;
    font-size: 1.8rem; /* 统一图标大小 */
}

.social-links .fa-coffee:hover {
    color: #db81c0;
    transform: translateY(-2px) scale(1.1);
}

/* Instagram图标样式 */
.social-links .fa-instagram {
    color: #795f9c;
    font-size: 1.8rem; /* 统一图标大小 */
    text-shadow: 0 0 1px #f5b0d3; /* 添加文字阴影让图标看起来更饱满 */
}

.social-links .fa-instagram:hover {
    color: #d4b0f5;
    transform: translateY(-2px) scale(1.1);
}

/* Pixiv图标样式 */
.social-links .fa-paint-brush {
    color: #1d6d85;
    font-size: 1.8rem; /* 统一图标大小 */
}

.social-links .fa-paint-brush:hover {
    color: #89C1C0;
    transform: translateY(-2px) scale(1.1);
}

/* 点击效果 */
.social-links a:active {
    transform: translateY(0) scale(0.95); /* 点击时稍微缩小 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .manga-info {
        margin-top: 2rem;
        max-width: 100%;
    }
} 

/* 心形图标容器 - 控制整体位置和大小 */
.glowing-heart-wrapper {
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translate(-50%, -50%);
    width: 540px;
    height: 540px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* 心形图标本身的样式 */
.heart-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 25px #0150CE);
    animation: heartGlow 2s infinite ease-in-out;
}

/* Start Reading 文字样式 */
.glowing-heart-wrapper::after {
    content: 'START READING';
    position: absolute;
    top: 52%;
    left: 49.5%;
    transform: translate(-50%, -50%);
    color: #fa4242;
    font-size: 1.4rem;
    font-weight: bold;
    font-family: 'PixelFont', sans-serif !important;
    visibility: hidden;
    animation: textPulse 2s infinite ease-in-out;
}

/* 心形发光动画定义 */
@keyframes heartGlow {
    0% {
        filter: drop-shadow(0 0 25px #0150CE);
    }
    50% {
        filter: drop-shadow(0 0 35px #0150CE);
        transform: scale(1.02);
    }
    100% {
        filter: drop-shadow(0 0 25px #0150CE);
    }
}

/* 文字发光动画定义 */
@keyframes textPulse {
    0% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
        text-shadow: 0 0 10px #f8f671;
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
        text-shadow: 0 0 15px #ffedbc;
    }
    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
        text-shadow: 0 0 10px #f8f671;
    }
} 

/* 平板尺寸的特别调整 */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 2) {
    .glowing-heart-wrapper {
        left: 50%;
    }
    .glowing-heart-wrapper::after {
        left: 49.5% !important;  /* 保持完美位置 */
        transform: translate(-50%, -50%) !important;
        /* animation: none !important; */  /* 删除这行，恢复动画 */
    }
}

/* 手机端样式 */
@media (max-width: 768px) {
    .glowing-heart-wrapper::after {
        left: 49.8% !important;
        font-size: 1.2rem;
        transform: translate(-50%, -50%) !important;
        position: absolute !important;
    }
}

/* 添加字体加载完成后的显示 */
.fonts-loaded .glowing-heart-wrapper::after {
    visibility: visible;
}

/* iOS设备特定修复样式 */
@supports (-webkit-touch-callout: none) {
    /* iOS设备特定样式 */
    .mobile-menu-btn {
        -webkit-appearance: none !important;
        appearance: none !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .mobile-menu-btn span {
        background-color: #ffffff !important;
        display: block !important;
        width: 22px !important;
        height: 3px !important; /* 增加线条高度 */
        margin: 4px auto !important;
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.9) !important; /* 增加阴影 */
        border-radius: 2px !important;
        position: relative !important;
        z-index: 1002 !important;
        filter: brightness(1.2) !important; /* 增加亮度 */
    }
    
    /* Safari特定样式 */
    @media not all and (min-resolution:.001dpcm) { 
        @supports (-webkit-appearance:none) {
            .mobile-menu-btn span {
                background-color: #ffffff !important;
                border: 0.5px solid rgba(255, 255, 255, 0.5) !important;
                height: 3px !important;
                filter: brightness(1.5) !important; /* 在Safari中额外增加亮度 */
            }
        }
    }
    
    /* 确保子菜单正常显示 */
    .dropdown.active .dropdown-menu {
        position: static !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 100% !important;
    }
    
    /* 确保子菜单项可点击 */
    .dropdown-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
} 

/* iOS特定样式优化 */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        /* 增强iOS上的下拉菜单按钮可点击性 */
        .dropdown-toggle {
            padding: 8px 12px !important;
            margin: 0 !important;
            width: 100% !important;
            cursor: pointer;
            text-decoration: none !important;
            position: relative !important;
            z-index: 10 !important;
            font-size: 15px !important; /* 增大母菜单字体 */
        }
        
        /* GALLERY链接点击区域增强 - 用于分离式结构 */
        .gallery-text {
            position: relative !important;
            padding: 6px 10px 6px 12px !important;
            display: inline-block !important;
            width: 100% !important; /* 扩展到100%宽度 */
            text-decoration: none !important;
            color: white !important;
            cursor: pointer !important;
            -webkit-tap-highlight-color: rgba(93, 86, 156, 0.2) !important;
            z-index: 26 !important; /* 确保在最上层 */
            text-align: left !important;
            font-size: 15px !important; /* 增大GALLERY字体 */
            font-weight: 400 !important; /* 稍微加粗 */
        }
        
        /* GALLERY文本激活状态 */
        .gallery-text:active {
            background-color: rgba(93, 86, 156, 0.3) !important;
        }
        
        /* 隐藏下拉图标容器 */
        .dropdown-icon-container {
            display: none !important;
        }
        
        /* 移除下拉图标 */
        .dropdown-toggle i,
        .dropdown-toggle .dropdown-icon {
            display: none !important;
        }
        
        /* iOS设备上自动展开子菜单的样式 */
        .nav-links.active .dropdown .dropdown-menu {
            display: block !important;
            width: 100% !important;
            position: static !important;
            visibility: visible !important;
            opacity: 1 !important;
            background-color: rgba(40, 40, 40, 0.65) !important;
            border-radius: 0 !important;
            overflow: visible !important; /* 防止滚动条出现 */
            box-shadow: none !important;
            margin: 0 !important;
            padding: 0 !important;
            max-height: none !important; /* 无高度限制 */
        }
        
        /* 确保子菜单项可见且可点击 - 更紧凑的样式 */
        .nav-links.active .dropdown-menu .dropdown-item {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            pointer-events: auto !important;
            min-height: 32px !important; /* 增加高度 */
            padding: 6px 10px 6px 25px !important; /* 增加内边距 */
            background-color: rgba(30, 30, 30, 0.65) !important;
            border-bottom: none !important; /* 移除边框 */
            font-size: 13.5px !important; /* 明显增大字体 */
            line-height: 1.4 !important; /* 增加行高 */
            font-weight: 400 !important; /* 稍微加粗字体 */
        }
        
        /* 下拉菜单子项激活状态 */
        .nav-links.active .dropdown-menu .dropdown-item:active {
            background-color: rgba(93, 86, 156, 0.4) !important; /* 保持点击反馈 */
            color: #ffffff !important; /* 确保文字颜色清晰可见 */
        }
        
        /* 改进iOS菜单容器 */
        .nav-links.active {
            padding: 3px 0 5px 0 !important; /* 顶部和底部添加更多空间 */
            overflow: visible !important; /* 防止出现滚动条 */
            -webkit-overflow-scrolling: touch !important; /* 平滑滚动 */
            max-height: none !important; /* 无高度限制 */
        }
        
        /* 移动导航菜单项垂直对齐修复 - 特别针对SHOP和CONTACT */
        .nav-links .nav-item .nav-link {
            display: flex !important;
            align-items: center !important;
            min-height: 28px !important; /* 减小高度 */
            padding: 4px 15px !important; /* 减小内边距 */
            line-height: 1.2 !important; /* 减小行高 */
            text-decoration: none !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        }
        
        /* 特别处理最后几个菜单项 */
        .nav-links .nav-item:nth-last-child(-n+2) .nav-link {
            padding-top: 6px !important; /* 减小内边距 */
            padding-bottom: 6px !important; /* 减小内边距 */
            margin-bottom: 0 !important; /* 确保底部没有额外的margin */
        }
        
        /* 特别处理最后一个菜单项 - CONTACT */
        .nav-links .nav-item:last-child .nav-link {
            padding-bottom: 8px !important; /* 减小内边距 */
            border-bottom: none !important; /* 移除最后一项的底部边框 */
            margin-bottom: 4px !important; /* 为菜单底部添加些许空间 */
        }
        
        /* 设置字体更紧凑 - 增大主菜单字体 */
        .nav-links a, .nav-links .nav-link, .dropdown-toggle {
            font-size: 15px !important; /* 增大主菜单字体 */
            font-weight: 400 !important; /* 适当加粗 */
        }
        
        /* 特别处理SHOP和CONTACT菜单项 */
        .nav-links .nav-item:nth-last-child(-n+2) .nav-link {
            font-size: 15px !important; /* 增大字体 */
            font-weight: 400 !important; /* 适当加粗 */
        }
    }
    
    /* 专门针对iPad隐藏汉堡按钮 */
    @media only screen 
    and (min-device-width: 768px) 
    and (max-device-width: 1024px) 
    and (-webkit-min-device-pixel-ratio: 2) {
        .mobile-menu-btn {
            display: none !important;
        }
    }
} 