/* ========== 0. Base & tokens ========== */
.home-page { color: #0f172a; }

.home-hero {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(1200px 600px at 10% -10%, rgba(59,130,246,0.25), transparent 60%),
      radial-gradient(900px 500px at 100% 10%, rgba(168,85,247,0.22), transparent 55%),
      radial-gradient(700px 450px at 50% 100%, rgba(239,68,68,0.18), transparent 60%),
      linear-gradient(180deg, #ffffff 0%, #f6f7fb 60%, #ffffff 100%);
    padding: 0;
}

.home-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(15,23,42,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(15,23,42,0.05) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: center;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(15,23,42,0.08);
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 20px;
}
.eyebrow .dot { width:8px; height:8px; border-radius:50%; background: linear-gradient(180deg,#10b981,#059669); box-shadow: 0 0 0 4px rgba(16,185,129,.15); }

/* 首页 dot 颜色变体 */
.eyebrow .dot--tool { background: linear-gradient(180deg,#3b82f6,#6366f1); box-shadow: 0 0 0 4px rgba(59,130,246,.15); }
.eyebrow .dot--tutorial { background: linear-gradient(180deg,#10b981,#059669); box-shadow: 0 0 0 4px rgba(16,185,129,.15); }
.eyebrow .dot--news { background: linear-gradient(180deg,#8b5cf6,#6d28d9); box-shadow: 0 0 0 4px rgba(139,92,246,.15); }

.hero-title {
    font-size: 56px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin: 0 0 20px;
    color: #0b1220;
}
.hero-title .grad {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #dc2626 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-desc {
    font-size: 18px;
    line-height: 1.75;
    color: #475569;
    max-width: 620px;
    margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.btn-primary, .btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px;
    border-radius: 14px;
    font-weight: 700; font-size: 15px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    box-shadow: 0 10px 30px rgba(37,99,235,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(124,58,237,0.32); }
.btn-ghost {
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(15,23,42,0.04);
}
.btn-ghost:hover { border-color: #cbd5e1; transform: translateY(-2px); }

/* CTA 区深色背景下的 ghost 变体 */
.btn-ghost--dark {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.2);
    color: #f1f5f9;
}

.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-stats .stat { display: flex; flex-direction: column; }
.hero-stats .stat .num { font-size: 28px; font-weight: 800; color: #0b1220; letter-spacing: -.01em; }
.hero-stats .stat .lbl { font-size: 13px; color: #64748b; margin-top: 4px; }

/* Hero 右侧：三张浮动卡片，预览工具 */
.hero-preview {
    position: relative;
    min-height: 420px;
}
.hero-card {
    position: absolute;
    width: 300px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 30px 60px -20px rgba(15,23,42,0.18);
    transform-origin: center;
    transition: transform .5s ease;
}
.hero-card:hover { transform: translateY(-4px) rotate(0deg) !important; }
.hero-card .head { display:flex; align-items:center; gap:12px; margin-bottom: 12px; }
.hero-card .ic {
    width: 40px; height: 40px; border-radius: 12px;
    display:flex; align-items:center; justify-content:center;
    color: #fff; font-size: 18px;
}
.hero-card.blue .ic { background: linear-gradient(135deg,#1e3a8a,#3b82f6); }
.hero-card.red .ic  { background: linear-gradient(135deg,#dc2626,#ef4444); }
.hero-card.purple .ic { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.hero-card .ttl { font-weight: 800; color:#0b1220; font-size: 15px; }
.hero-card ul { list-style:none; padding:0; margin:0; }
.hero-card ul li {
    padding: 10px 12px; margin: 6px 0; border-radius: 10px;
    background: #f8fafc; border: 1px solid #f1f5f9;
    font-size: 13px; color: #334155;
    display:flex; align-items:center; gap: 10px;
}
.hero-card ul li::before {
    content:""; flex: none; width:6px; height:6px; border-radius:50%; background:#94a3b8;
}
.hero-card.blue ul li::before { background:#3b82f6; }
.hero-card.red ul li::before { background:#ef4444; }
.hero-card.purple ul li::before { background:#a855f7; }

.hero-card.blue   { top: 0;    left: 30px;  transform: rotate(-4deg); }
.hero-card.purple { top: 70px; right: 0;    transform: rotate(3deg); }
.hero-card.red    { bottom: 0; left: 80px;  transform: rotate(-2deg); }

/* ========== 1. Tools section ========== */
.tools-section { padding: 72px 24px; background: #fafbff; border-top: 1px solid #eef2ff; }
.tools-container { max-width: 1200px; margin: 0 auto; }

.section-head { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head--mt-0 { margin-top: 0; }
.section-head--mt-60 { margin-top: 60px; }
.section-head .titles .eyebrow { background: #fff; }
.section-head h2 { font-size: 36px; font-weight: 800; margin: 0; color:#0b1220; letter-spacing:-.01em; }
.section-head p { color: #475569; margin: 10px 0 0; max-width: 600px; line-height: 1.7; }
.section-head .more { color: #2563eb; font-weight: 700; text-decoration: none; }
.section-head .more:hover { text-decoration: underline; }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.tool-card {
    position: relative;
    background: #fff;
    border-radius: 26px;
    padding: 26px 24px 24px;
    border: 1px solid #eef2ff;
    box-shadow: 0 10px 36px -16px rgba(30,58,138,.12);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -18px rgba(15,23,42,.18); border-color:#c7d2fe; }

.tool-card .visual {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 0 2px;
}
.tool-icon {
    width: 58px; height: 58px; border-radius: 18px;
    display:flex; align-items:center; justify-content:center;
    font-size: 26px; color: #fff; flex: none;
}
.tool-card.blue   .tool-icon { background: linear-gradient(135deg,#1e3a8a,#3b82f6); box-shadow: 0 10px 24px -10px rgba(59,130,246,.55); }
.tool-card.red    .tool-icon { background: linear-gradient(135deg,#dc2626,#ef4444); box-shadow: 0 10px 24px -10px rgba(239,68,68,.55); }
.tool-card.purple .tool-icon { background: linear-gradient(135deg,#7c3aed,#a855f7); box-shadow: 0 10px 24px -10px rgba(168,85,247,.55); }

.tool-title {
    font-size: 19px;
    line-height: 1.4;
    font-weight: 800;
    color: #0b1220;
    margin: 0;
    letter-spacing: -.005em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 反问式 slogan：做成彩色胶囊 + 独立一行，不再是 tag 堆里的一列 */
.tool-slogan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    padding: 9px 14px;
    border-radius: 14px;
    align-self: flex-start;
    max-width: 100%;
    white-space: normal;
}
.tool-slogan::before {
    content: "";
    flex: none;
    width: 6px; height: 6px; border-radius: 50%;
}
.tool-card.blue   .tool-slogan { background: #eff6ff; color: #1e3a8a; }
.tool-card.blue   .tool-slogan::before { background: #3b82f6; }
.tool-card.red    .tool-slogan { background: #fef2f2; color: #991b1b; }
.tool-card.red    .tool-slogan::before { background: #ef4444; }
.tool-card.purple .tool-slogan { background: #f5f3ff; color: #6d28d9; }
.tool-card.purple .tool-slogan::before { background: #a855f7; }

.tool-description {
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scenarios-wrap { display: flex; flex-direction: column; gap: 8px; }
.scenarios-label {
    font-size: 12px; font-weight: 700; color:#94a3b8;
    text-transform: uppercase; letter-spacing: .06em;
}
.scenarios-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.scenario-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    white-space: nowrap;
}

.tool-cta {
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 14px;
}
.tool-cta .meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}
.tool-cta .meta strong { color: #0f172a; }
.tool-cta-btn {
    display:inline-flex; align-items:center; gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.tool-card.blue   .tool-cta-btn { background: linear-gradient(135deg,#1e3a8a,#3b82f6); box-shadow: 0 8px 18px -8px rgba(59,130,246,.55); }
.tool-card.red    .tool-cta-btn { background: linear-gradient(135deg,#dc2626,#ef4444); box-shadow: 0 8px 18px -8px rgba(239,68,68,.55); }
.tool-card.purple .tool-cta-btn { background: linear-gradient(135deg,#7c3aed,#a855f7); box-shadow: 0 8px 18px -8px rgba(168,85,247,.55); }
.tool-cta-btn:hover { transform: translateY(-2px); }
.tool-cta-btn i { transition: transform .2s ease; }
.tool-cta-btn:hover i { transform: translateX(4px); }

/* ========== 2. CMS articles sections ========== */
.articles-section { padding: 72px 24px; background: #ffffff; }
.articles-wrap { max-width: 1200px; margin: 0 auto; }

.articles-grid-feat {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
}
/* Featured big card */
.feat-card {
    display: flex; flex-direction: column; gap: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    text-decoration: none;
    color: inherit;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -18px rgba(15,23,42,0.18); border-color:#c7d2fe; }
.feat-cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg,#dbeafe 0%,#ede9fe 100%);
    position: relative; overflow: hidden;
    display:flex; align-items:center; justify-content:center;
}
.feat-cover img { width:100%; height:100%; object-fit: cover; display:block; }
.feat-cover .ph {
    text-align:center; padding: 24px; color:#6366f1;
    font-weight: 800; letter-spacing:.02em;
}
.feat-body { padding: 4px 24px 26px; display:flex; flex-direction: column; gap: 14px; }
.cat-pill {
    display:inline-flex; align-self: flex-start;
    font-size: 12px; font-weight:700; padding: 5px 12px;
    border-radius: 999px; background:#eef2ff; color:#4338ca;
}
.feat-title { font-size: 26px; font-weight:800; line-height: 1.35; color:#0b1220; margin: 0; letter-spacing:-.01em; }
.feat-excerpt { font-size: 15px; line-height: 1.8; color:#475569; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow:hidden; }
.feat-meta { font-size: 13px; color:#64748b; display:flex; gap:14px; flex-wrap: wrap; }

/* Right list (6 rows) */
.mini-list { display:flex; flex-direction: column; gap: 14px; }
.mini-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 14px;
    background: #fafbff;
    border: 1px solid #eef2ff;
    border-radius: 16px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: all .2s ease;
}
.mini-item:hover { border-color:#c7d2fe; background: #fff; transform: translateX(3px); box-shadow: 0 10px 24px -12px rgba(30,58,138,.2); }
.mini-thumb {
    aspect-ratio: 1/1; border-radius: 12px; overflow:hidden;
    background: linear-gradient(135deg,#ede9fe,#ddd6fe);
    display:flex; align-items:center; justify-content:center;
    color:#6d28d9; font-weight:800; font-size: 12px; text-align:center;
}
.mini-thumb img { width:100%; height:100%; object-fit: cover; display:block; }
.mini-body { display:flex; flex-direction:column; gap: 8px; min-width: 0; }
.mini-title { font-size: 15px; line-height:1.5; font-weight:700; color:#0b1220; margin:0;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.mini-desc { font-size:13px; color:#475569; line-height:1.6;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin:0; }
.mini-meta { font-size:12px; color:#64748b; }

/* Section 2 grid cards */
.card-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:22px; }
.art-card {
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius: 20px; overflow:hidden;
    transition: all .3s ease; text-decoration:none; color:inherit;
    display:flex; flex-direction:column;
}
.art-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px -18px rgba(15,23,42,.18); border-color:#fbcfe8; }
.art-cover {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg,#fee2e2 0%,#fecdd3 50%,#ede9fe 100%);
    display:flex; align-items:center; justify-content:center; text-align:center; padding: 24px;
    color:#be123c; font-weight: 800;
}
.art-cover img { width:100%; height:100%; object-fit: cover; display:block; }
.art-body { padding: 18px 20px 22px; display:flex; flex-direction: column; gap: 10px; flex:1; }
.art-title { font-size: 17px; font-weight:800; color:#0b1220; line-height:1.5; margin:0;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.art-excerpt { font-size:14px; line-height:1.7; color:#475569; margin:0;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.art-meta { display:flex; gap:14px; font-size:12px; color:#64748b; margin-top:auto; padding-top:8px; }
.art-meta .cat { color: #7c3aed; font-weight:700; }

/* Empty block 内联样式提取 */
.empty-icon { font-size: 28px; opacity: .5; display: block; }
.empty-text { margin-top: 10px; }

/* ========== 3. CTA / brand strip ========== */
.cta-section { padding: 72px 24px; background:
    radial-gradient(1200px 400px at 0% 0%, rgba(59,130,246,.18), transparent 60%),
    radial-gradient(900px 400px at 100% 100%, rgba(168,85,247,.18), transparent 60%),
    #0b1220;
    color:#fff;
}
.cta-wrap { max-width: 1100px; margin: 0 auto; text-align:center; }
.cta-wrap h2 { font-size: 40px; margin: 0; letter-spacing:-.01em; font-weight: 800; }
.cta-wrap h2 .grad { background: linear-gradient(90deg,#93c5fd,#c4b5fd,#fca5a5); -webkit-background-clip:text; background-clip:text; color:transparent; }
.cta-wrap p { font-size: 17px; line-height: 1.8; color:#cbd5e1; max-width: 720px; margin: 16px auto 30px; }
.cta-wrap .hero-actions { justify-content: center; }
.cta-wrap .btn-primary { background: linear-gradient(135deg,#3b82f6,#a855f7); box-shadow: 0 12px 30px rgba(124,58,237,.35); }

.empty-block { text-align:center; padding: 40px; color:#64748b;
    background:#fafbff; border:1px dashed #e2e8f0; border-radius: 20px;
    grid-column: 1 / -1;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
    .tool-title { font-size: 18px; }
    .tool-slogan { font-size: 13px; }
    .tool-description { font-size: 13.5px; -webkit-line-clamp: 4; }
}
@media (max-width: 1080px) {
    .home-hero .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-title { font-size: 44px; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-preview { min-height: 360px; max-width: 620px; margin: 0 auto; width: 100%; }
    .hero-card { width: 260px; }
    .hero-card.blue { left: 0; }
    .hero-card.purple { right: 0; }
    .hero-card.red { left: 60px; }
    .tools-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .articles-grid-feat { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

    /* 2 列时防止工具卡挤压：标题一行兜底、描述收紧 */
    .tool-title { font-size: 18px; -webkit-line-clamp: 2; }
    .tool-slogan { font-size: 13px; line-height: 1.55; }
    .tool-description { -webkit-line-clamp: 4; }
}
@media (max-width: 640px) {
    .hero-slide { padding: 90px 18px 70px; }
    .hero-title { font-size: 34px; }
    .hero-desc { font-size: 15px; }
    .hero-stats { gap: 18px; }
    .hero-stats .stat .num { font-size: 22px; }
    .hero-preview { min-height: 420px; }
    .hero-card { width: 240px; }
    .hero-card.blue { transform: rotate(-2deg); left: 0; }
    .hero-card.purple { transform: rotate(3deg); right: 0; top: 120px; }
    .hero-card.red { transform: rotate(-1deg); bottom: 0; left: 40px; }

    .section-head h2 { font-size: 26px; }
    .tools-section, .articles-section, .cta-section { padding: 50px 18px; }
    .tools-grid, .card-grid { grid-template-columns: 1fr; }
    .mini-item { grid-template-columns: 88px 1fr; padding: 10px; }
    .feat-title { font-size: 20px; }
    .cta-wrap h2 { font-size: 28px; }

    /* 手机单列：字号放宽、slogan 完整显示 */
    .tool-card { padding: 22px 18px 20px; gap: 14px; border-radius: 22px; }
    .tool-title { font-size: 19px; -webkit-line-clamp: 2; }
    .tool-slogan { font-size: 13.5px; padding: 9px 12px; }
    .tool-description { font-size: 14px; -webkit-line-clamp: 4; line-height: 1.85; }
    .scenario-tag { font-size: 12px; padding: 5px 10px; }
    .tool-cta { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 12px; }
    .tool-cta .meta { flex-direction: row; justify-content: space-between; align-items: center; }
    .tool-cta-btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .tool-card, .feat-card, .art-card, .mini-item, .btn-primary, .btn-ghost, .hero-card { transition: none !important; }
    .tool-card:hover, .feat-card:hover, .art-card:hover, .mini-item:hover { transform: none !important; }
}

/* ========== Home hero carousel ========== */
.home-carousel {
    isolation: isolate;
}

.home-carousel-track {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    transition: transform .65s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

.hero-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 120px 24px 110px;
}

.hero-slide-hongyan {
    position: relative;
    background:
        radial-gradient(900px 540px at 8% 0%, rgba(244,63,94,.2), transparent 62%),
        radial-gradient(760px 480px at 100% 100%, rgba(249,115,22,.16), transparent 62%),
        linear-gradient(145deg,#fff 0%,#fff5f7 52%,#fff 100%);
}

.eyebrow--rose {
    border-color: rgba(225,29,72,.14);
    color: #881337;
}

.eyebrow .dot--rose {
    background: linear-gradient(180deg,#fb7185,#be123c);
    box-shadow: 0 0 0 4px rgba(225,29,72,.13);
}

.hero-title .grad--rose {
    background: linear-gradient(135deg,#be123c,#e11d48 58%,#f97316);
    -webkit-background-clip: text;
    background-clip: text;
}

.btn-primary--rose {
    background: linear-gradient(135deg,#be123c,#e11d48 70%,#fb7185);
    box-shadow: 0 10px 30px rgba(190,18,60,.25);
}

.btn-primary--rose:hover {
    box-shadow: 0 14px 38px rgba(190,18,60,.32);
}

.hongyan-preview {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.hongyan-window {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(159,18,57,.15);
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 34px 74px -34px rgba(109,22,52,.35);
    transform: rotate(1deg);
}

.hongyan-window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 48px;
    padding: 0 17px;
    border-bottom: 1px solid #f5e0e5;
    color: #6b4553;
    background: #fff9fa;
    font-size: 12px;
}

.hongyan-window-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fda4af;
}

.hongyan-window-bar span:nth-child(2) { background: #fdba74; }
.hongyan-window-bar span:nth-child(3) { background: #86efac; }

.hongyan-window-bar strong {
    margin-left: 8px;
}

.hongyan-window-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 24px;
}

.hongyan-flow-node {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 88px;
    padding: 15px;
    border: 1px solid #f1dce2;
    border-radius: 16px;
    background: linear-gradient(145deg,#fff,#fff7f8);
}

.hongyan-flow-node i {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg,#be123c,#fb7185);
}

.hongyan-flow-node span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hongyan-flow-node b {
    color: #472631;
    font-size: 13px;
}

.hongyan-flow-node small {
    color: #8a6a75;
    font-size: 11px;
}

.hongyan-flow-arrow {
    color: #e11d48;
    font-size: 12px;
}

.hongyan-window-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    padding: 15px;
    border-top: 1px solid #f5e0e5;
    color: #76545f;
    background: #fffafb;
    font-size: 11px;
    font-weight: 700;
}

.hongyan-window-footer i {
    color: #e11d48;
    margin-right: 5px;
}

.home-carousel-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 13px;
    transform: translateX(-50%);
}

.home-carousel-arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(71,38,49,.12);
    border-radius: 50%;
    color: #563b45;
    background: rgba(255,255,255,.86);
    box-shadow: 0 7px 20px rgba(71,38,49,.08);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.home-carousel-arrow:hover,
.home-carousel-arrow:focus-visible {
    color: #be123c;
    border-color: rgba(190,18,60,.3);
    transform: translateY(-1px);
}

.home-carousel-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(71,38,49,.1);
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 7px 20px rgba(71,38,49,.06);
}

.home-carousel-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.home-carousel-dots button.is-active {
    width: 25px;
    background: linear-gradient(90deg,#2563eb,#7c3aed);
}

.home-carousel.is-hongyan .home-carousel-dots button.is-active {
    background: #e11d48;
}

.tool-card.rose .tool-icon {
    background: linear-gradient(135deg,#9f1239,#e11d48 70%,#fb7185);
    box-shadow: 0 10px 24px -10px rgba(225,29,72,.55);
}

.tool-card.rose .tool-slogan {
    color: #9f1239;
    background: #fff1f2;
}

.tool-card.rose .tool-slogan::before { background: #e11d48; }

.tool-card.rose .tool-cta-btn {
    background: linear-gradient(135deg,#9f1239,#e11d48);
    box-shadow: 0 8px 18px -8px rgba(225,29,72,.55);
}

@media (max-width: 1080px) {
    .hero-slide {
        padding: 100px 24px 100px;
    }

    .hongyan-preview {
        min-height: auto;
        width: min(680px, 100%);
        margin: 0 auto;
    }

    .hongyan-window {
        transform: none;
    }
}

@media (max-width: 640px) {
    .hero-slide {
        padding: 90px 18px 92px;
    }

    .hongyan-preview {
        width: 100%;
    }

    .hongyan-window-body {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .hongyan-flow-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }

    .hongyan-flow-node {
        min-height: 74px;
    }

    .home-carousel-controls {
        bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-carousel-track,
    .home-carousel-arrow,
    .home-carousel-dots button {
        transition: none !important;
    }
}