/* 项目首页 index.vm：居中标语 + 搜索、素材 / AI 工具方块、最新动态、精选推荐（等高行瀑布流）。
   背景用白色，强调色沿用站点紫色；左侧栏、顶部栏沿用全站样式。 */
.ix {
    --ix-ink: #191919;
    --ix-muted: #6b6b76;
    --ix-line: #e7e7ec;
    --ix-soft: #f4f4f7;
    --ix-card: #fff;
    --ix-accent: #7c3aed;
    --ix-accent-2: #6d28d9;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 8px 56px;
    color: var(--ix-ink);
    font-size: 14px;
}
[data-theme=dark] .ix { --ix-ink: #f2f2f5; --ix-muted: #a3a3b2; --ix-line: #34323f; --ix-soft: #23212c; --ix-card: #1c1b24; --ix-accent: #9f67ff; }
.ix h1, .ix h2, .ix b, .ix p { color: inherit; }
.ix .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 标语 + 搜索 ---------- */
.ix-hero { display: flex; flex-direction: column; align-items: center; padding: 44px 0 30px; text-align: center; }
.ix-hero h1 { margin: 0 0 22px; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.ix-script {
    display: inline-block; margin-left: 8px;
    font-family: "STXingkai", "Xingkai SC", "KaiTi", "STKaiti", "Kaiti SC", "Brush Script MT", cursive;
    font-weight: 400; font-size: 1.2em; font-style: italic;
    color: var(--ix-accent);
    transform: rotate(-4deg) translateY(-2px);
}
.ix-search {
    display: flex; align-items: center;
    width: min(100%, 640px); height: 48px; padding: 0 6px 0 4px;
    border: 1px solid var(--ix-line); border-radius: 999px;
    background: var(--ix-card);
    box-shadow: 0 2px 10px rgba(25, 25, 25, .05);
    transition: border-color .15s, box-shadow .15s;
}
.ix-search:focus-within { border-color: var(--ix-accent); box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }
.ix-cat { position: relative; flex: none; display: flex; align-items: center; height: 36px; margin-right: 6px; border-right: 1px solid var(--ix-line); }
.ix-cat select {
    appearance: none; -webkit-appearance: none;
    height: 36px; padding: 0 30px 0 14px;
    border: 0; border-radius: 999px; background: transparent;
    color: var(--ix-ink); font-size: 13px; font-weight: 600; cursor: pointer; outline: none;
}
.ix-cat select option { color: #191919; }
.ix-cat i { position: absolute; right: 12px; font-size: 14px; pointer-events: none; color: var(--ix-muted); }
.ix-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ix-ink); font-size: 14px; outline: none; }
.ix-search input::placeholder { color: var(--ix-muted); }
.ix-go {
    flex: none; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%;
    background: var(--ix-accent); color: #fff; font-size: 16px; cursor: pointer;
    transition: background-color .15s, transform .1s;
}
.ix-go:hover { background: var(--ix-accent-2); }
.ix-go:active { transform: scale(.94); }

/* ---------- 区块 ---------- */
.ix-block { margin-top: 36px; }
.ix-block h2 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }

/* 方块横排（可横向滚动） */
.ix-rail { position: relative; }
.ix-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 6 * 12px) / 7.35); gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 2px; }
.ix-tiles::-webkit-scrollbar { display: none; }
.ix-tile { position: relative; display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--ix-soft); color: #fff; text-decoration: none; }
.ix-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ix-tile:hover img { transform: scale(1.05); }
.ix-tile::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.ix-tile-name { position: absolute; left: 10px; bottom: 9px; z-index: 1; font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.ix-tile--contain { background: #ede7ff; }
[data-theme=dark] .ix-tile--contain { background: #2d2442; }
.ix-tile--contain img { object-fit: contain; padding: 18%; }
.ix-wave {
    position: absolute; left: 10%; right: 10%; top: 50%; z-index: 1;
    display: flex; align-items: center; gap: 6px;
    height: 34px; margin-top: -17px; padding: 0 10px;
    border-radius: 999px;
    background: rgba(20, 20, 24, .72);
    backdrop-filter: blur(6px);
}
.ix-wave > i { flex: none; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: #191919; font-size: 10px; }
.ix-wave > span { flex: 1; display: flex; align-items: center; gap: 2px; height: 18px; }
.ix-wave b { flex: 1; height: var(--h); border-radius: 1px; background: #c4b5fd; }
.ix-rail-btn {
    position: absolute; top: 50%; z-index: 2;
    width: 34px; height: 34px; margin-top: -17px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--ix-line); border-radius: 50%;
    background: var(--ix-card); color: var(--ix-ink); font-size: 16px; cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.ix-rail-btn--next { right: -10px; }
.ix-rail-btn--prev { left: -10px; }
.ix-rail-btn[hidden] { display: none; }

/* 最新动态 */
.ix-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ix-new { display: block; color: var(--ix-ink); text-decoration: none; }
.ix-new > b { display: block; margin-top: 10px; font-size: 13px; font-weight: 700; }
.ix-new > span:last-child { display: block; margin-top: 4px; font-size: 12px; line-height: 1.6; color: var(--ix-muted); }
.ix-new:hover > b { color: var(--ix-accent); }
.ix-banner { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.ix-banner--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ix-new:hover .ix-banner img { transform: scale(1.03); }
.ix-banner--photo::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.ix-banner-big { position: absolute; left: 18px; bottom: 14px; z-index: 1; color: #fff; font-size: 30px; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.ix-banner-big small { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0; opacity: .9; }
.ix-banner--dark { display: flex; align-items: center; background: #15131c; color: #fff; padding: 0 0 0 22px; }
.ix-banner--dark .ix-banner-copy { position: relative; z-index: 1; font-size: 30px; font-weight: 900; line-height: 1.1; }
.ix-banner--dark .ix-banner-copy small { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: #c4b5fd; }
.ix-banner--dark .ix-banner-copy em { font-style: italic; color: #c4b5fd; }
.ix-collage { position: absolute; right: -8px; top: 0; bottom: 0; width: 50%; }
.ix-collage img { position: absolute; width: 58%; border-radius: 6px; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); object-fit: cover; aspect-ratio: 3 / 4; }
.ix-collage img:nth-child(1) { right: 40%; top: 14%; transform: rotate(-8deg); }
.ix-collage img:nth-child(2) { right: 8%; top: 6%; transform: rotate(6deg); aspect-ratio: 1; }
.ix-collage img:nth-child(3) { right: 22%; top: 50%; transform: rotate(-2deg); aspect-ratio: 16 / 10; width: 62%; }
.ix-banner--brand { display: flex; align-items: center; padding-left: 22px; background: #7c3aed; color: #fff; }
.ix-banner--brand .ix-banner-copy { position: relative; z-index: 1; font-size: 34px; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
.ix-banner-tag { position: absolute; left: 22px; top: 16px; z-index: 1; padding: 3px 10px; border-radius: 999px; background: #fff; color: #7c3aed; font-size: 11px; font-weight: 700; transform: rotate(-3deg); }
.ix-banner-side { position: absolute; right: 0; top: 0; width: 46%; height: 100%; object-fit: cover; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }

/* 精选推荐：等高行，按原图宽高比分配宽度 */
.ix-fresh { display: flex; flex-direction: column; gap: 10px; }
.ix-row { display: flex; gap: 10px; }
.ix-pick { position: relative; flex: var(--ar) 1 0; min-width: 0; aspect-ratio: var(--ar); border-radius: 6px; overflow: hidden; background: var(--ix-soft); }
.ix-pick img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ix-pick:hover img { transform: scale(1.03); }
.ix-pick-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
    padding: 30px 12px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .6));
    color: #fff; opacity: 0; transition: opacity .2s;
}
.ix-pick:hover .ix-pick-cap, .ix-pick:focus-visible .ix-pick-cap { opacity: 1; }
.ix-pick-cap b { font-size: 13px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-pick-cap small { flex: none; padding: 1px 7px; border-radius: 4px; background: rgba(255, 255, 255, .22); font-size: 11px; }
.ix-more { margin-top: 28px; text-align: center; }
.ix-more a { display: inline-block; padding: 10px 26px; border: 1px solid var(--ix-line); border-radius: 999px; color: var(--ix-ink); font-weight: 600; text-decoration: none; }
.ix-more a:hover { background: var(--ix-soft); color: var(--ix-ink); }
.ix a:focus-visible, .ix button:focus-visible, .ix select:focus-visible { outline: 2px solid var(--ix-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .ix-tile img, .ix-pick img, .ix-banner img { transition: none; } .ix-tiles { scroll-behavior: auto; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) { .ix-tiles { grid-auto-columns: calc((100% - 5 * 12px) / 6.35); } }
@media (max-width: 991px) {
    .ix-tiles { grid-auto-columns: calc((100% - 4 * 12px) / 5.3); }
    .ix-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ix-news .ix-new:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
    .ix { padding-top: 8px; }
    .ix-hero { padding: 24px 0 16px; }
    .ix-hero h1 { font-size: 21px; }
    .ix-cat select { max-width: 104px; padding-left: 10px; }
    .ix-tiles { grid-auto-columns: calc((100% - 2 * 10px) / 3.3); gap: 10px; }
    .ix-rail-btn { display: none !important; }
    .ix-news { grid-template-columns: minmax(0, 1fr); }
    .ix-news .ix-new:nth-child(3) { display: block; }
    .ix-row { flex-wrap: wrap; }
    .ix-pick { flex-basis: 100%; }
}
