/* 自定义字体 (loaded via link rel=preload in head) */

:root {
--primary-cream: #FEF9C4;
--primary-sky: #DDEBFA;
--accent-yellow: #FFE066;
--accent-pink: #F9D5E5;
--neutral-white: #FFFFFF;
--neutral-light-gray: #F5F5F5;
--neutral-dark-gray: #333333;
--border-sky: #B4D4F7;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
color: var(--neutral-dark-gray);
background-color: var(--primary-cream);
}

/* 漫画纸纹理背景 */
.comic-texture {
position: relative;
background-image:
    radial-gradient(circle at 1px 1px, rgba(221, 235, 250, 0.05) 1px, transparent 0);
background-size: 20px 20px;
}

/* 导航栏样式 */
.navbar {
background: transparent;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
transition: all 0.3s ease;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
}

.navbar.scrolled {
background: transparent;
/* 保持毛玻璃模糊但不添加色块或蓝色描边，使用阴影提升可读性 */
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nav-link {
position: relative;
color: var(--neutral-dark-gray);
text-decoration: none;
padding: 0.5rem 1rem;
border-radius: 8px;
transition: all 0.3s ease;
}

.nav-link:hover {
background: var(--primary-sky);
transform: translateY(-1px);
}

.nav-link::after {
content: '';
position: absolute;
bottom: -2px;
left: 50%;
width: 0;
height: 2px;
background: var(--border-sky);
transition: all 0.3s ease;
transform: translateX(-50%);
}

.nav-link:hover::after {
width: 80%;
}

/* 按钮样式 */
.btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
border: 2px solid var(--primary-sky);
border-radius: 12px;
background: var(--primary-cream);
color: var(--neutral-dark-gray);
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
cursor: pointer;
position: relative;
overflow: hidden;
}

.btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, var(--primary-sky), transparent);
transition: left 0.5s ease;
}

.btn:hover::before {
left: 100%;
}

.btn:hover {
background: var(--primary-sky);
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(221, 235, 250, 0.4);
}

.btn-primary {
background: var(--primary-sky);
color: var(--neutral-dark-gray);
}

.btn-primary:hover {
background: var(--accent-yellow);
border-color: var(--accent-yellow);
}

/* Banner 样式 */
.banner {
min-height: 60vh;
display: flex;
align-items: center;
background: linear-gradient(135deg, var(--primary-cream) 0%, var(--primary-sky) 100%);
position: relative;
overflow: hidden;
}

.banner::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 224, 102, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(249, 213, 229, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(180, 212, 247, 0.05) 0%, transparent 50%);
animation: float 20s ease-in-out infinite;
}

@keyframes float {
0%, 100% { transform: translateY(0px) rotate(0deg); }
33% { transform: translateY(-10px) rotate(1deg); }
66% { transform: translateY(5px) rotate(-1deg); }
}

.banner-content {
position: relative;
z-index: 2;
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
align-items: center;
}

.banner-text h1 {
font-size: 3.2rem;
font-weight: 700;
color: var(--neutral-dark-gray);
margin-bottom: 1rem;
line-height: 1.05;
}

.banner-text .hero-line {
display: block;
line-height: 1.05;
margin-bottom: 0.6rem;
}

.banner-text .hero-line-1 {
font-size: 3.8rem;
letter-spacing: -0.02em;
display: inline-block;
white-space: nowrap;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}

.banner-text .hero-line-2 {
font-size: 2.2rem;
color: var(--neutral-dark-gray);
margin-top: 0.6rem;
margin-bottom: 0.8rem;
font-weight: 700;
}

.banner-text .highlight {
color: inherit;
position: relative;
}

.banner-text .highlight::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 100%;
height: 3px;
background: var(--accent-yellow);
border-radius: 2px;
}

.banner-text p {
font-size: 1.25rem;
color: var(--neutral-dark-gray);
margin-top: 0.4rem;
margin-bottom: 2rem;
line-height: 1.7;
}

.app-showcase {
position: relative;
}

.phone-mockup {
position: relative;
max-width: 300px;
margin: 0 auto;
}

/* Testimonials (Hero 右侧用户评价) */
.right-column {
display: flex;
flex-direction: column;
gap: 1.5rem;
align-items: center;
}

.testimonials {
width: 100%;
display: flex;
flex-direction: column;
gap: 1rem;
align-items: stretch;
}

.testimonial-card {
display: flex;
gap: 1rem;
align-items: flex-start;
background: var(--neutral-white);
border-radius: 12px;
padding: 1rem;
box-shadow: 0 6px 20px rgba(0,0,0,0.06);
border: 1px solid rgba(0,0,0,0.04);
}

.testimonial-avatar img {
width: 48px;
height: 48px;
object-fit: cover;
border-radius: 8px;
}

.testimonial-content strong {
font-weight: 600;
}

@media (max-width: 768px) {
.right-column {
    align-items: flex-start; /* ensure testimonial cards align left on mobile */
}

.testimonial-card {
    flex-direction: row;
}
.testimonial-content {
    text-align: left;
}
}

/* 模块样式 */
.section {
padding: 5rem 2rem;
position: relative;
}

/* 调整特定区块间距：减少 features 与 about 的垂直间隙 */
#features {
padding-bottom: 2rem;
}

#about {
padding-top: 2rem;
}

.section-bg {
background: var(--neutral-white);
}

.container {
max-width: 1200px;
margin: 0 auto;
}

.section-title {
text-align: center;
font-size: 2.5rem;
font-weight: 700;
color: var(--neutral-dark-gray);
margin-bottom: 1.5rem;
position: relative;
}

.section-title::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background: var(--primary-sky);
border-radius: 2px;
}

/* 左对齐标题的下划线（用于单个版块） */
.section-title.left-align::after {
left: 0;
transform: none;
}

.section-subtitle {
text-align: center;
font-size: 1.125rem;
color: var(--neutral-dark-gray);
margin-bottom: 1.25rem;
opacity: 0.8;
}

/* 统一正文文字大小（覆盖少量内联不一致设置） */
.comic-border p,
.about-grid p,
.testimonial-content p,
.resource-desc,
.feature-desc,
.manga-info p {
font-size: 1rem !important;
line-height: 1.7 !important;
color: var(--neutral-dark-gray) !important;
margin-bottom: 1rem;
}

/* 漫画风格边框（默认改为轻量容器，使用 .comic-border.card 或 .comic-border.no-gradient 恢复大卡片样式） */
.comic-border {
position: relative;
border: none;
border-radius: 0;
padding: 0;
background: transparent;
margin-bottom: 2rem;
transition: all 0.3s ease;
}

.comic-border.card {
position: relative;
border: 2px dashed var(--primary-sky);
border-radius: 16px;
padding: 2rem;
background: linear-gradient(135deg, var(--primary-cream) 0%, var(--primary-sky) 100%);
margin-bottom: 2rem;
transition: all 0.3s ease;
}

.comic-border.card:hover {
border-color: var(--border-sky);
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(221, 235, 250, 0.3);
}

.comic-border.no-gradient {
position: relative;
border: 2px dashed var(--primary-sky);
border-radius: 16px;
padding: 2rem;
background: var(--primary-cream);
margin-bottom: 2rem;
}

/* 功能卡片 */
.feature-card {
background: linear-gradient(135deg, #FEF9C4 0%, #FFF5D6 100%);
border: 2px solid rgba(180,212,247,0.45);
border-radius: 16px;
padding: 2rem;
text-align: center;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
color: var(--neutral-dark-gray);
}

/* 指定：智能搜索卡背景为纯白，以便更清晰（覆盖 card-solid 渐变） */
.resource-card.smart-search {
background: #FFFFFF !important;
}

/* 指定：分类浏览卡片去掉虚线边框（仅应用在该卡） */
.resource-card.no-dash {
border: none !important;
box-shadow: 0 8px 22px rgba(0,0,0,0.06);
background: #FFF; /* 保持白色背景 */
}

.feature-card::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255, 224, 102, 0.1) 0%, transparent 70%);
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}

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

.feature-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(221, 235, 250, 0.4);
border-color: var(--accent-yellow);
}

.feature-icon {
width: 80px;
height: 80px;
margin: 0 auto 1.5rem;
background: var(--primary-sky);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
background: var(--accent-yellow);
transform: scale(1.1);
}

.feature-title {
font-size: 1.25rem;
font-weight: 600;
color: var(--neutral-dark-gray);
margin-bottom: 1rem;
}

.feature-desc {
color: var(--neutral-dark-gray);
opacity: 0.8;
line-height: 1.6;
}

/* 正版资源网格 */
.manga-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 3rem;
}

/* 资源卡片（新版） */
.resource-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
margin-top: 2.5rem;
}

.resource-card {
background: var(--neutral-white);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0,0,0,0.06);
transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-card:hover {
transform: translateY(-6px);
box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}

.resource-header {
background: #071126;
color: #fff;
padding: 1rem;
border-radius: 8px;
display: flex;
gap: 1rem;
align-items: center;
justify-content: space-between;
}

.header-pills {
display: flex;
gap: 0.6rem;
align-items: center;
}

.header-pill {
padding: 0.45rem 0.8rem;
border-radius: 10px;
font-weight: 700;
font-size: 0.95rem;
color: #fff;
background: linear-gradient(90deg,#ff5f7a,#ffb36b);
box-shadow: 0 6px 18px rgba(255,95,122,0.12);
}

.header-pill.secondary {
background: rgba(255,255,255,0.08);
color: #fff;
font-weight: 600;
box-shadow: none;
}

.header-dot {
width: 36px;
height: 36px;
border-radius: 50%;
background: #fff;
flex: 0 0 36px;
}

.search-box {
background: linear-gradient(90deg, #6a11cb, #2575fc);
padding: 0.6rem 0.9rem;
border-radius: 8px;
color: #fff;
display: flex;
align-items: center;
gap: 0.5rem;
width: 100%;
}

.search-input {
background: transparent;
border: none;
outline: none;
color: #fff;
width: 100%;
font-size: 0.95rem;
}

.resource-tabs {
display: flex;
gap: 0.6rem;
margin-top: 0.6rem;
}

.tab-pill {
background: rgba(255,255,255,0.06);
color: #fff;
padding: 0.35rem 0.8rem;
border-radius: 999px;
font-size: 0.9rem;
}

.resource-body {
padding: 1.25rem;
}

.resource-title {
font-size: 1.125rem;
font-weight: 700;
margin-bottom: 0.5rem;
}

.resource-desc {
color: var(--neutral-dark-gray);
opacity: 0.9;
line-height: 1.6;
font-size: 0.95rem;
}

.tag-list {
display: flex;
gap: 0.5rem;
margin-top: 0.75rem;
}

.tag {
background: #E6F0FF;
color: #0B66C3;
padding: 0.25rem 0.6rem;
border-radius: 6px;
font-size: 0.85rem;
font-weight: 600;
}

/* 下载区域样式 */
.download-section .download-card {
display: flex;
gap: 1.5rem;
align-items: center;
justify-content: space-between;
padding: 1.25rem;
border-radius: 12px;
background: var(--neutral-white);
box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.download-btn {
display: inline-flex;
align-items: center;
gap: 0.6rem;
padding: 0.8rem 1.2rem;
background: linear-gradient(90deg,#2575fc,#6a11cb);
color: #fff;
border-radius: 10px;
font-weight:700;
text-decoration: none;
}

.version-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 0.45rem;
}

.version-list li a {
color: var(--neutral-dark-gray);
text-decoration: none;
padding: 0.45rem 0.6rem;
display: inline-block;
border-radius: 8px;
}

.version-list li a:hover {
background: #F5F8FF;
}

/* 下载历史条目样式 */
.version-list {
list-style: none;
padding: 0;
margin: 0;
display: block;
}

.version-entry {
display: flex;
gap: 0.75rem;
align-items: center;
}

.version-entry img {
width: 48px;
height: 48px;
object-fit: cover;
border-radius: 8px;
flex: 0 0 48px;
background: #fff;
border: 1px solid rgba(0,0,0,0.04);
}

/* 强制每条历史版本为独占一行，图片与文字按行排列避免重复显示 */
.version-list li {
display: block;
width: 100%;
clear: both;
}
/* 增加历史版本项之间的间距 */
.version-list li {
margin-bottom: 1.25rem;
}

.version-entry {
display: flex;
gap: 0.75rem;
align-items: flex-start;
}

.version-entry img {
display: block;
}
/* 如果某条目误包含多个图片，仅显示第一张，隐藏其余，防止重复展示 */
.version-entry img:not(:first-child) {
display: none !important;
width: 0 !important;
height: 0 !important;
visibility: hidden !important;
}

.version-meta {
display: flex;
flex-direction: column;
}

.version-name {
font-weight: 700;
color: var(--neutral-dark-gray);
}

.version-desc {
font-size: 0.9rem;
color: var(--neutral-dark-gray);
opacity: 0.85;
}

.version-download {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.45rem 0.7rem;
border-radius: 8px;
background: linear-gradient(90deg,#6a11cb,#2575fc);
color:#fff;
font-weight:600;
text-decoration:none;
}

/* 全宽下载 CTA */
.download-cta {
width: 100%;
/* 使用与 hero 区相同的渐变背景以保持视觉一致性 */
background: linear-gradient(135deg, var(--primary-cream) 0%, var(--primary-sky) 100%);
padding: 2.5rem 0;
}
.download-cta .download-card {
display: flex;
gap: 1.5rem;
align-items: center;
justify-content: space-between;
padding: 1.25rem;
border-radius: 12px;
background: var(--neutral-white);
box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* 强化下载按钮视觉 */
.download-cta .download-btn {
background: linear-gradient(90deg,#6a11cb,#2575fc);
padding: 0.95rem 1.4rem;
font-size: 1rem;
border-radius: 10px;
}
/* 覆盖下载区域按钮颜色为指定色值，文字/图标为深灰 */
.download-cta .download-btn {
background: #DDEBFA !important;
color: #333333 !important;
}
/* 更醒目的 CTA 文本链接 */
.cta-link {
color: #1e6fd8;
font-weight: 700;
text-decoration: none;
}
.cta-link:hover {
text-decoration: underline;
}
/* 历史版本下载按钮样式（左侧列表） */
.download-cta .version-download {
background: #DDEBFA;
color: #333333;
box-shadow: none;
padding: 0.35rem 0.6rem;
border-radius: 8px;
text-decoration: none;
font-weight: 600;
}
.download-cta .version-download svg { stroke: currentColor; fill: none; }

/* 右侧最新版卡片（更丰富的布局与信息） */
.download-right-card {
display: grid;
grid-template-columns: 1fr 140px;
gap: 1rem;
align-items: start;
}

.download-right-card .version-main {
display: flex;
flex-direction: column;
gap: 0.6rem;
}

.download-right-card .version-meta {
display: flex;
flex-direction: column;
gap: 1rem;
align-items: center;
text-align: center;
line-height: 1.45;
}

.download-right-card .meta-item {
background: linear-gradient(90deg, rgba(13,76,145,0.04), rgba(106,17,203,0.03));
padding: 0.65rem 0.9rem;
border-radius: 8px;
width: 100%;
font-size: 0.95rem;
}

.download-right-card .version-meta img {
display: block;
width: 100px;
height: 100px;
border-radius: 8px;
object-fit: cover;
border: 1px solid rgba(0,0,0,0.04);
cursor: pointer;
}

.download-right-card .changelog {
background: #FFFFFF;
border-radius: 10px;
padding: 0.6rem;
box-shadow: 0 6px 18px rgba(0,0,0,0.04);
font-size: 0.95rem;
line-height: 1.5;
}

.download-right-card .install-steps {
font-size: 0.95rem;
color: var(--neutral-dark-gray);
}

@media (max-width: 900px) {
.download-right-card {
    grid-template-columns: 1fr;
}
.download-right-card .version-meta {
    /* 在窄屏使用横向可换行布局，保证每行两项并留出间隙 */
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}
.download-right-card .meta-item {
    /* 每行两项，保留间距；不改变桌面端 */
    flex: 0 0 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
    box-sizing: border-box;
}
}

/* 轻微渐变/实色背景用于信息区，避免纯白单调 */
.section-accent {
background: linear-gradient(135deg, rgba(254, 249, 196, 0.15) 0%, rgba(221, 235, 250, 0.08) 100%);
}

/* 帮助中心（#help）覆盖，使用纯白背景以提高可读性 */
#help {
background: var(--neutral-white);
}

/* 帮助中心搜索框专用样式 */
#help .search-box {
background: #DDEBFA;
padding: 0.6rem 0.9rem;
border-radius: 8px;
color: var(--neutral-dark-gray);
}

#help .search-box .search-input {
background: transparent;
border: none;
outline: none;
color: var(--neutral-dark-gray);
width: 100%;
}

.section-strong {
background: linear-gradient(90deg, rgba(38,115,252,0.08), rgba(106,17,203,0.06));
}

/* lightweight section wrapper for non-card areas */
.section-block {
padding: 0;
background: transparent;
border: none;
}

/* 视觉变体：圆角实色、虚线卡、立体浮层 */
.card-solid {
background: linear-gradient(135deg, #FFF5E0, #FFF9F0);
border-radius: 14px;
padding: 1rem;
box-shadow: 0 8px 30px rgba(255,200,80,0.06);
}

.card-dashed {
background: #fff;
border: 2px dashed rgba(180,212,247,0.5);
border-radius: 12px;
padding: 1rem;
}

.card-elevated {
background: #fff;
border-radius: 12px;
padding: 1rem;
box-shadow: 0 18px 50px rgba(15,23,42,0.08);
transform: translateY(0);
transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-elevated:hover {
transform: translateY(-6px);
box-shadow: 0 26px 70px rgba(15,23,42,0.12);
}

/* 关于区右侧信息卡替代背景 */
.about-card.alt-bg {
/* 浅薄荷绿到浅蓝色渐变 */
background: linear-gradient(135deg, #E8FFF4 0%, #DDEBFA 100%);
border-radius: 16px;
padding: 1.5rem;
box-shadow: 0 12px 30px rgba(0,0,0,0.06);
border: 1px solid rgba(34,150,206,0.06);
}

/* Masonry 样式（用于资源与其他卡片区） */
.masonry-grid {
column-count: 3;
column-gap: 1.25rem;
}

.masonry-grid .resource-card,
.masonry-grid .resource-card .resource-body,
.masonry-grid .resource-card .resource-header {
display: inline-block;
width: 100%;
}

.masonry-grid .resource-card {
break-inside: avoid;
margin: 0 0 1.25rem;
}

@media (max-width: 900px) {
.masonry-grid { column-count: 2; }
}
@media (max-width: 600px) {
.masonry-grid { column-count: 1; }
}

/* about card alignment and icons */
.about-card {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.about-item svg {
flex: 0 0 20px;
margin-top: 4px;
color: var(--neutral-dark-gray);
}

/* ensure about-card inner content is left-aligned while card stays centered */
.about-card > div {
width: 100%;
text-align: left;
}
.about-card .about-item {
align-items: center;
}

@media (max-width: 900px) {
.resource-grid {
    grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 600px) {
.resource-grid {
    grid-template-columns: 1fr;
}
}

.manga-card {
background: var(--neutral-white);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
position: relative;
}

.manga-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.manga-image {
width: 100%;
height: 300px;
object-fit: cover;
transition: transform 0.3s ease;
}

.manga-card:hover .manga-image {
transform: scale(1.05);
}

.manga-info {
padding: 1.5rem;
}

.manga-title {
font-size: 1.125rem;
font-weight: 600;
color: var(--neutral-dark-gray);
margin-bottom: 0.5rem;
}

.manga-status {
display: inline-block;
background: var(--primary-sky);
color: var(--neutral-dark-gray);
padding: 0.25rem 0.75rem;
border-radius: 20px;
font-size: 0.875rem;
font-weight: 500;
}

/* 底部样式 */
.footer {
background: #FFFFFF;
border-top: 2px solid var(--primary-sky);
padding: 3rem 2rem 2rem;
}

.footer-content {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}

.footer-section h3 {
color: var(--neutral-dark-gray);
font-size: 1.125rem;
font-weight: 600;
margin-bottom: 1rem;
}

.footer-links {
list-style: none;
}

.footer-links li {
margin-bottom: 0.5rem;
}

.footer-links a {
color: var(--neutral-dark-gray);
text-decoration: none;
transition: color 0.3s ease;
}

.footer-links a:hover {
color: var(--border-sky);
}

.compliance-notice {
background: var(--primary-sky);
padding: 1.5rem;
border-radius: 12px;
margin-top: 2rem;
text-align: center;
}

.compliance-notice h4 {
color: var(--neutral-dark-gray);
font-size: 1rem;
font-weight: 600;
margin: 0 0 0.5rem 0; /* remove top margin to avoid extra space */
}

.compliance-notice p {
color: var(--neutral-dark-gray);
font-size: 0.875rem;
opacity: 0.8;
margin: 0 0 0.5rem 0; /* ensure no top margin and consistent bottom spacing */
}

.compliance-link {
color: var(--neutral-dark-gray);
text-decoration: none;
cursor: pointer;
transition: color 0.2s ease;
font-weight: 600;
}

.compliance-link:hover {
color: var(--border-sky);
}

.copyright {
text-align: center;
padding-top: 2rem;
border-top: 1px solid var(--primary-sky);
margin-top: 2rem;
color: var(--neutral-dark-gray);
opacity: 0.7;
}

/* 滚动到顶部按钮 */
.scroll-to-top {
position: fixed;
bottom: 2rem;
right: 2rem;
width: 50px;
height: 50px;
background: var(--accent-yellow);
border: 2px solid var(--primary-sky);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 1000;
}

.scroll-to-top.visible {
opacity: 1;
visibility: visible;
}

.scroll-to-top:hover {
transform: scale(1.1);
background: var(--primary-sky);
}

/* 加载动画 */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--primary-cream);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
opacity: 0;
visibility: hidden;
}

/* loading elements removed */

@keyframes book-flip {
0%, 100% { transform: rotateY(0deg); }
50% { transform: rotateY(180deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
.banner-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.banner-text h1 {
    font-size: 2.5rem;
}

/* Ensure main title remains larger than subtitle on mobile */
.banner-text .hero-line-1 {
    font-size: 2.2rem;
    font-weight: 700;
}
.banner-text .hero-line-2 {
    font-size: 1.6rem;
    font-weight: 700;
}

.section {
    padding: 3rem 1rem;
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.manga-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* 移动端减小 hero 高度以提升首屏信息密度 */
.banner {
    min-height: 50vh;
}
}

/* 移动端导航栏样式 */
/* 默认隐藏汉堡按钮，只有移动端显示 */
.nav-toggle {
display: none;
background: transparent;
border: 0;
cursor: pointer;
padding: 0.5rem;
border-radius: 8px;
}

@media (max-width: 900px) {
.desktop-nav { display: none !important; }
.nav-toggle { display: inline-flex !important; align-items: center; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--neutral-dark-gray); }
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(6px);
    z-index: 1100;
    padding: 1rem 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
/* 移动端 navbar 两侧留白，避免贴边 */
.navbar .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.mobile-nav a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--neutral-dark-gray);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.mobile-nav a:hover { background: var(--primary-sky); }

/* 移动端核心功能区域改为上下布局 */
.about-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    align-items: stretch !important;
}

/* 移动端下载区域改为上下布局 */
.download-columns {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
}

/* 移动端帮助中心区域改为上下布局 */
#help .section-block > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
}

/* 移动端：取消精美页面（#features）卡片的淡入动画，直接展示 */
.fade-in-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
.fade-in-up.visible {
    opacity: 1 !important;
    transform: none !important;
}
}

/* 移动端：避免 hero 被固定导航覆盖，增加顶部内边距（仅移动端） */
@media (max-width: 900px) {
.banner {
    /* mobile: keep smaller padding so mobile layout remains compact */
    padding-top: calc(80px + 0.75rem) !important;
}
}

/* Desktop: ensure hero has extra top padding to avoid being covered by fixed navbar */
@media (min-width: 901px) {
.banner {
    padding-top: calc(100px + 0.75rem) !important;
}
}

/* 动画延迟 */
.fade-in-up {
opacity: 0;
transform: translateY(30px);
transition: all 0.6s ease;
}

.fade-in-up.visible {
opacity: 1;
transform: translateY(0);
}

/* 漫画风格的进度条 */
.progress-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: var(--primary-cream);
z-index: 1001;
}

.progress-bar {
height: 100%;
background: var(--primary-sky);
width: 0%;
transition: width 0.3s ease;
position: relative;
}

.progress-bar::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: radial-gradient(circle at 2px 2px, rgba(180, 212, 247, 0.3) 1px, transparent 0);
background-size: 8px 8px;
}
/* 移动端页脚：三部分在一行，允许横向滚动以避免溢出（仅影响移动端） */
@media (max-width: 900px) {
/* 强制三列，无横向滚动；下载应用区放到下方占满整行 */
.footer-content {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    align-items: start;
    padding: 0 0.25rem;
}
.footer-content .footer-section {
    box-sizing: border-box;
}
/* 第四个节（下载应用）在移动端单独占一行放到下方 */
.footer-content .footer-section:nth-child(4) {
    grid-column: 1 / -1;
    margin-top: 0.6rem;
}
}
</style>
<style>
/* 全局覆盖：取消所有 .fade-in-up 的动画，直接显示（桌面/移动均生效） */
.fade-in-up, .fade-in-up.visible {
opacity: 1 !important;
transform: none !important;
transition: none !important;
}
</style>
<style>
/* Mobile-only: slightly reduce top nav text sizes (does not affect desktop) */
@media (max-width: 900px) {
.navbar .container span { font-size: 1.125rem !important; }
.nav-link { font-size: 0.95rem !important; padding: 0.35rem 0.6rem !important; }
.navbar .btn, .navbar .btn-primary { font-size: 0.95rem !important; padding: 0.5rem 0.9rem !important; }
}