* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #f6f8fc 0%, #eef2f8 100%);
    color: #222;
    min-height: 100vh;
}
.wrap {
    max-width: 540px;
    margin: 0 auto;
    padding: 10px 6px 30px;
}

/* ---------- Banner ---------- */
.banner {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(20, 40, 80, 0.08);
    background: #fff;
}
.banner-item {
    position: relative;
    display: block;
    text-decoration: none;
    color: #fff;
}
.banner-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1240 / 975;
    object-fit: cover;
}
.banner-title {
    position: absolute;
    left: 14px; bottom: 12px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
}

.banner-slider { position: relative; }
.banner-slider .banner-item { display: none; }
.banner-slider .banner-item.active { display: block; }
.dots {
    position: absolute;
    bottom: 8px; right: 10px;
    display: flex;
    gap: 6px;
}
.dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}
.dot.active { background: #fff; }

/* ---------- 副标题上图 690×256 ---------- */
.subtitle-banner {
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(20, 40, 80, 0.06);
    background: #fff;
}
.subtitle-banner-item {
    display: block;
    text-decoration: none;
    line-height: 0;
}
.subtitle-banner-item + .subtitle-banner-item {
    border-top: 1px solid #eef0f4;
}
.subtitle-banner-item img {
    display: block;
    width: 100%;
    max-width: 690px;
    margin: 0 auto;
    height: auto;
    aspect-ratio: 690 / 256;
    object-fit: cover;
}

.subtitle-row {
    margin: 12px 2px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.subtitle {
    margin: 0 2px;
    color: #6b7280;
    font-size: 13px;
    text-align: center;
}
.btn-download-guide {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #8b5cf6 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45), 0 2px 4px rgba(30, 64, 175, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: download-btn-pulse 2.5s ease-in-out infinite;
}
.btn-download-guide-main {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.btn-download-guide-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    font-size: 14px;
    line-height: 1;
}
.btn-download-guide-text {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
}
.btn-download-guide-title {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
}
.btn-download-guide-hint {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
}
.btn-download-guide-arrow {
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    opacity: 0.9;
}
.btn-download-guide:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}
@keyframes download-btn-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45), 0 2px 4px rgba(30, 64, 175, 0.15); }
    50%      { box-shadow: 0 6px 22px rgba(99, 102, 241, 0.55), 0 2px 6px rgba(30, 64, 175, 0.2); }
}
@media (prefers-reduced-motion: reduce) {
    .btn-download-guide { animation: none; }
}

/* ---------- 五列方块网格 ---------- */
.grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
.cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #222;
    background: #fff;
    border-radius: 12px;
    padding: 4px 2px 6px;
    box-shadow: 0 2px 8px rgba(20, 40, 80, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cell:active {
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(20, 40, 80, 0.08);
}
.icon-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f5fa;
}
.icon-img img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}
.icon-title {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.2;
    color: #333;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 文字导航 ---------- */
.text-nav {
    margin-top: 14px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(20, 40, 80, 0.05);
}
.text-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    text-decoration: none;
    line-height: 1.2;
    text-align: center;
}
.text-nav-item:active { background: #f8fafc; }
.text-nav-title {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(
        90deg,
        #ff5e62, #ff9966, #ffcf40, #4ecd6b,
        #4f8cff, #a06bff, #ff5e62
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: text-nav-shimmer 7s linear infinite;
}
.text-nav-title.solid {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: var(--solid-color, #1f2937);
    color: var(--solid-color, #1f2937);
    animation: none;
}
/* 炫彩模式下父级 text-fill 为 transparent，子元素需强制实色以免高亮间歇消失 */
.text-nav-title:not(.solid) .text-nav-hl {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: var(--hl-color, #f43f5e) !important;
    color: var(--hl-color, #f43f5e) !important;
    animation: none !important;
}
.text-nav-hl {
    color: var(--hl-color, #f43f5e);
    -webkit-text-fill-color: var(--hl-color, #f43f5e);
    font-size: 1.15em;
    font-weight: 800;
}
@keyframes text-nav-shimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .text-nav-title { animation: none; }
}

.footer {
    margin-top: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.8;
}
.footer-link {
    display: inline-block;
    margin-top: 4px;
    color: #4f8cff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.footer-link:active { opacity: 0.75; }

/* ---------- 下载说明页 ---------- */
.guide-wrap { padding-top: 4px; }
.guide-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 -2px 12px;
    padding: 10px 4px;
    background: rgba(246, 248, 252, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.guide-back {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 40, 80, 0.08);
    color: #334155;
    text-decoration: none;
    font-size: 26px;
    line-height: 1;
    font-weight: 300;
}
.guide-topbar-title {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    padding-right: 36px;
}
.guide-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(20, 40, 80, 0.05);
}
.guide-section {
    padding: 12px 14px;
    border-bottom: 1px solid #e8ecf2;
}
.guide-section-last { border-bottom: none; }
.guide-step {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.65;
    color: #334155;
}
.guide-step:last-child { margin-bottom: 0; }
.guide-hl {
    color: #7c3aed;
    font-weight: 600;
}
.guide-img {
    display: block;
    width: 100%;
    height: auto;
    margin: 10px 0 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.guide-img:last-child { margin-bottom: 4px; }

/* 屏幕较窄时缩小一点字号 */
@media (max-width: 360px) {
    .icon-title { font-size: 11px; }
    .grid { gap: 8px; }
    .btn-download-guide { gap: 6px; padding: 11px 10px; }
    .btn-download-guide-title { font-size: 15px; }
    .btn-download-guide-hint { font-size: 10px; }
}
