/* 首页（founder 2026-11-05 第一屏 v2，方案 2「彩色卡片」）：一行两个工具按钮 + 6 个玩法 + 下面的工具卡片。
   颜色取自 logo（珊瑚 / 青 / 芒果黄 / 紫），按钮文字和底色的对比度都不低于 4.5:1。
   只有 8 个首页文件加载这个文件，所以这里改 features / faq / blog 的底色不影响别的页面。
   玩法卡片由 scripts/build_plays_pages.py 按 config/web_plays.json 的 "home" 生成。 */
.hero-section.hp {
    position: relative;
    overflow: hidden;
    padding-top: 12px;
    background: #FFFDF6;
}
/* 手绘涂鸦：只占两侧留白，不压文字，点不到 */
.hero-section.hp::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23F0A818' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3l3.6 8.4 9 .9-6.8 6 2 8.9L16 22.5l-7.8 4.7 2-8.9-6.8-6 9-.9z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 28' fill='none' stroke='%2318C0C0' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M3 20c4-10 8-10 12 0s8 10 14 0'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23F06048' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M16 5c7-1 12 4 11 11s-8 11-14 9S4 17 7 11s10-6 13-2 1 10-4 10-6-5-3-7'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%237848C0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 27S4 19 4 11c0-4 3-7 6.500-7 2.500 0 4.500 1.500 5.500 4 1-2.500 3-4 5.500-4C25 4 28 7 28 11c0 8-12 16-12 16z'/%3E%3C/svg%3E");
    background-position: left 7% top 26px, right 7% top 34px, left 11% top 158px, right 11% top 150px;
    background-size: 34px, 40px, 36px, 32px;
}
.hp .hero-container { position: relative; z-index: 1; gap: 14px; max-width: 1180px; }
.hp .hero-subtitle { margin-bottom: 4px; }
.hp h1 { text-wrap: balance; }   /* 别让第二行只剩一个字，划线会很显眼 */
/* 荧光笔划线：标题折行时每行都有 */
.hp-mark { background: linear-gradient(transparent 68%, #FFE27A 68%); }

/* 第一屏的两个工具入口。颜色特意和下面的「做同款」不一样 */
.hp-acts { width: 100%; display: flex; justify-content: center; gap: 14px; margin-top: 4px; }
.hp-act {
    flex: 0 1 230px;
    min-width: 0;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .12s, box-shadow .12s;
}
.hp-act > span { font-size: 20px; line-height: 1; }
.hp-act:hover { transform: translateY(-2px); }
.hp-act:active { transform: translateY(2px); }
.hp-act:focus-visible { outline: 3px solid #1C1814; outline-offset: 3px; }
.hp-act-video, .hp-act-video:hover { background: #D63D24; color: #fff; box-shadow: 0 4px 0 #A32B16; }
.hp-act-color, .hp-act-color:hover { background: #FFC933; color: #1C1814; box-shadow: 0 4px 0 #D99A0F; }
.hp-act-video:active { box-shadow: 0 2px 0 #A32B16; }
.hp-act-color:active { box-shadow: 0 2px 0 #D99A0F; }
.hp-hint { margin: 0; }

.hp-h2row { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; text-align: left; }
.hp-h2row h2 { margin: 0; padding: 0 .12em; font-size: 21px; font-weight: 800; color: #1C1814; background: linear-gradient(transparent 66%, #B9F0EF 66%); }
.hp-h2row a { font-size: 14px; font-weight: 700; color: #0F7B66; text-decoration: none; }

.hp-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #E6DCC6; border-radius: 16px; overflow: hidden; text-decoration: none; color: #1C1814; transition: transform .15s, box-shadow .15s; }
.hp-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(28, 24, 20, .12); }
.hp-m { position: relative; display: block; aspect-ratio: 4 / 3; background: #F3EEE4; overflow: hidden; }
.hp-m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-in { position: absolute; left: 10px; bottom: 10px; width: 28%; aspect-ratio: 4 / 3; object-fit: cover; border: 3px solid #fff; border-radius: 9px; box-shadow: 0 3px 10px rgba(28, 24, 20, .28); z-index: 2; }
.hp-c { display: flex; align-items: center; gap: 10px; padding: 10px 14px 12px; text-align: left; }
.hp-tx { flex: 1 1 auto; min-width: 0; }
.hp-tx b { display: block; font-size: 16px; font-weight: 800; }
.hp-tx small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: #5C544B; }
.hp-go { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border-radius: 999px; background: #0F7B66; color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
/* 每张玩法卡一种颜色，按位置循环（换玩法、改数量都不用动这里） */
.hp-grid > .hp-card:nth-child(6n+1) { background: #FFF0EC; border-color: #FFF0EC; }
.hp-grid > .hp-card:nth-child(6n+1) .hp-go { background: #D63D24; color: #fff; box-shadow: 0 3px 0 #A32B16; }
.hp-grid > .hp-card:nth-child(6n+2) { background: #E6F8F8; border-color: #E6F8F8; }
.hp-grid > .hp-card:nth-child(6n+2) .hp-go { background: #0B7F86; color: #fff; box-shadow: 0 3px 0 #075E63; }
.hp-grid > .hp-card:nth-child(6n+3) { background: #FFF8DF; border-color: #FFF8DF; }
.hp-grid > .hp-card:nth-child(6n+3) .hp-go { background: #FFC933; color: #1C1814; box-shadow: 0 3px 0 #D99A0F; }
.hp-grid > .hp-card:nth-child(6n+4) { background: #F3EDFC; border-color: #F3EDFC; }
.hp-grid > .hp-card:nth-child(6n+4) .hp-go { background: #6F3FC0; color: #fff; box-shadow: 0 3px 0 #522B94; }
.hp-grid > .hp-card:nth-child(6n+5) { background: #FFEEF4; border-color: #FFEEF4; }
.hp-grid > .hp-card:nth-child(6n+5) .hp-go { background: #D1336B; color: #fff; box-shadow: 0 3px 0 #9E2350; }
.hp-grid > .hp-card:nth-child(6n+6) { background: #EAF2FF; border-color: #EAF2FF; }
.hp-grid > .hp-card:nth-child(6n+6) .hp-go { background: #2C69D6; color: #fff; box-shadow: 0 3px 0 #1E4DA3; }

.hp-all { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; color: #0F7B66; text-decoration: none; }

/* 工具卡片（在玩法下面）：H2 关键词和两篇工具指南的链接都在这里，不能删 */
.hp-tools { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hp-tool { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border: 1px solid #E6DCC6; border-radius: 16px; text-align: left; }
.hp-tool > img { flex: none; width: 92px; height: 72px; object-fit: cover; border-radius: 10px; background: #F3EEE4; display: block; }
.hp-tool-t { flex: 1 1 auto; min-width: 0; }
.hp-tool-t h2 { margin: 0; font-size: 18px; font-weight: 800; color: #1C1814; line-height: 1.3; }
.hp-tool-t p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: #5C544B; }
.hp-tool-t a { margin-left: 6px; color: #0F7B66; font-weight: 600; white-space: nowrap; }
.hp-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: #0F7B66; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 12px rgba(15, 123, 102, .25); }
.hp-btn:hover { background: #0B5E4E; color: #fff; }
.hp-btn2 { background: #E89A1A; color: #1C1814; box-shadow: 0 4px 12px rgba(232, 154, 26, .28); }
.hp-btn2:hover { background: #D88C12; color: #1C1814; }

/* .hero-cta 这个类留着：app.js 靠它在安卓上隐藏 App Store 徽章 */
.hp .hp-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px 0 0; text-align: center; }
.hp .hp-foot .appstore-hero-badge { margin-top: 0; }

/* 下面几块用浅色分区，不再整页发白 */
.toys-promo { background: #FFFDF6; }
.features-section { background: #E9F9F8; }
.feature-card { box-shadow: none; border: 2px solid #C9F0EE; }
.faq-section { background: #FFF9E3; border-top: 0; }
.faq-item { background: #fff; border-color: #F6E3A1; }
.blog-preview-section { background: #FFF1EC; }
/* 荧光笔划线。这几个标题在手机上会折行，折法因语言而异；中文的「最新文章」有 data-i18n 会被重写内容，不能包 span。
   所以用粗下划线来画：每行都有，长度跟着文字走 */
.features-container h2, .faq-section h2, .blog-preview-container h2 {
    text-decoration-line: underline;
    text-decoration-color: #FFD5CC;
    text-decoration-thickness: .36em;
    text-decoration-skip-ink: none;
    text-underline-offset: -.12em;
}

/* 窄一点的平板：两侧放不下四个涂鸦，只留上面两个 */
@media (max-width: 1099px) {
    .hero-section.hp::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23F0A818' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3l3.6 8.4 9 .9-6.8 6 2 8.9L16 22.5l-7.8 4.7 2-8.9-6.8-6 9-.9z'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 28' fill='none' stroke='%2318C0C0' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M3 20c4-10 8-10 12 0s8 10 14 0'/%3E%3C/svg%3E"); background-position: left 20px top 12px, right 20px top 14px; background-size: 28px, 32px; }
}
@media (max-width: 768px) {
    .hero-section.hp { padding-top: 20px; }
    .hero-section.hp::before { background-position: left 12px top 8px, right 12px top 10px; background-size: 24px, 28px; }
    .hp .hero-container { padding: 0; }
    .hp-acts { gap: 10px; }
    .hp-act { flex: 1 1 0; min-height: 52px; padding: 0 8px; gap: 6px; font-size: 16px; }
    .hp-tools { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .hp-tool { gap: 10px; padding: 10px; }
    .hp-tool > img { width: 56px; height: 56px; }
    .hp-tool-t h2 { font-size: 16px; }
    .hp-tool-t p { font-size: 12px; }
    .hp-tool-t a { display: none; }
    .hp-btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
    .hp-h2row { flex-wrap: nowrap; justify-content: flex-start; align-items: center; }
    /* 手机上右边那个「全部玩法」放不下，这里画个小箭头指向玩法 */
    .hp-h2row::after { content: ""; flex: none; width: 28px; height: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%237848C0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5c10 0 18 6 21 18M26 23l-7-3M26 23l3-7'/%3E%3C/svg%3E") no-repeat center / contain; }
    .hp-h2row h2 { font-size: 18px; }
    .hp-h2row a { display: none; }
    .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hp-in { left: 6px; bottom: 6px; width: 34%; border-width: 2px; border-radius: 6px; }
    .hp-c { flex: 1 1 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 10px 10px; }  /* 按钮同一行对齐 */
    .hp-tx b { font-size: 14.5px; }
    .hp-tx small { font-size: 12px; }
    .hp-go { display: flex; width: 100%; box-sizing: border-box; margin-top: 8px; min-height: 40px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .hp-card, .hp-act { transition: none; }
    .hp-card:hover, .hp-act:hover, .hp-act:active { transform: none; }
}

/* TASK10J（规格 J 节，2026-11-16）：首页只留一个主按钮「让画动起来」，下面一句不可点的说明；中部两张工具卡合成一张 */
.hp-act-note { width: 100%; margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: #5C544B; text-align: center; cursor: default; }
.hp-tools.hp-tools-one { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-left: auto; margin-right: auto; }
.hp-tools-one .hp-tool-t a + a { margin-left: 10px; }
@media (max-width: 640px) { .hp-act-note { font-size: 13px; margin-top: 8px; } }
