1import{b as y,H as _,j as e,J as A,A as i,c as u}from"./main-DCN7hITS.js";import{F as C,H as S,N as L,C as B}from"./related-articles-ELRBH8u5.js";import{L as g}from"./localized-link-BQCmaZ1G.js";import{A as f,a as j,b as N}from"./avatar-CENFB7-c.js";import{B as F}from"./button-beucb0Yv.js";import{S as a}from"./skeleton-BSnjYDOd.js";import{a as I,b as D,c as E}from"./use-content-CenLa2u9.js";import{f as b}from"./format-BS_ZTJ7n.js";import{C as H}from"./calendar-D_p0Ib_D.js";import{C as v}from"./clock-CqqO90I-.js";import{E as P}from"./eye-BUgTydUW.js";import"./useLocale-DtRD0kY_.js";import"./index-CO_g2qw6.js";import"./index-CBUZQ6AY.js";import"./useQuery-DzZNgTXb.js";const T=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],z=y("book-open",T);function $({article:s}){return e.jsx(g,{to:`/article/${s.slug}`,className:"block group mb-12",children:e.jsx("div",{className:"relative rounded-2xl overflow-hidden border border-border bg-card shadow-[0_1px_2px_rgba(0,0,0,0.04),0_8px_24px_-12px_rgba(0,0,0,0.12)] transition-shadow duration-300 hover:shadow-[0_2px_4px_rgba(0,0,0,0.05),0_16px_40px_-16px_rgba(0,0,0,0.18)]",children:e.jsxs("div",{className:"grid md:grid-cols-[1.15fr_1fr]",children:[e.jsxs("div",{className:"p-7 md:p-10 flex flex-col justify-between order-2 md:order-1",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"flex items-center gap-2.5 mb-5",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-[0.18em] text-accent",children:[e.jsx("span",{className:"h-px w-6 bg-accent"}),"ç¼è¾ç²¾é"]}),s.topic&&e.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:s.topic.name})]}),e.jsx("h2",{className:"font-serif text-[1.55rem] md:text-[2rem] font-semibold leading-[1.25] text-foreground group-hover:text-accent transition-colors duration-200 mb-4 text-balance",children:s.title}),s.excerpt&&e.jsx("p",{className:"text-sm md:text-[0.9375rem] text-muted-foreground leading-relaxed line-clamp-3",children:s.excerpt})]}),e.jsxs("div",{className:"flex items-center gap-3 mt-8",children:[e.jsxs(f,{className:"h-7 w-7",children:[e.jsx(j,{src:s.author?.image||void 0}),e.jsx(N,{className:"text-xs",children:s.author?.name?.[0]||"B"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx("span",{className:"font-medium text-foreground/80",children:s.author?.name||"ByteNote"}),e.jsx("span",{className:"text-border",children:"·"}),e.jsx("span",{children:b(s.publishedAt)}),s.readTime&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-border",children:"·"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(v,{className:"h-3 w-3"}),s.readTime," åé"]})]})]})]})]}),e.jsx("div",{className:"relative h-56 md:h-full min-h-[240px] overflow-hidden bg-muted order-1 md:order-2",children:s.coverImage?e.jsx("img",{src:s.coverImage,alt:s.title,className:"absolute inset-0 w-full h-full object-cover group-hover:scale-[1.04] transition-transform duration-700 ease-out"}):e.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-gradient-to-br from-accent/15 via-muted to-muted",children:e.jsx("span",{className:"font-serif text-7xl text-accent/25 font-semibold select-none",children:s.title?.trim()?.[0]||"å"})})})]})})})}function O({article:s}){return e.jsx("article",{className:"py-5 group cursor-pointer",children:e.jsxs(g,{to:`/article/${s.slug}`,className:"flex gap-5 items-start",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsxs(f,{className:"h-5 w-5",children:[e.jsx(j,{src:s.author?.image||void 0}),e.jsx(N,{className:"text-[9px]",children:s.author?.name?.[0]||"B"})]}),e.jsx("span",{className:"text-xs text-foreground/60",children:s.author?.name||"ByteNote"}),e.jsx("span",{className:"text-border text-xs",children:"·"}),e.jsx("span",{className:"text-xs text-muted-foreground",children:b(s.publishedAt)}),s.topic&&e.jsx("span",{className:"hidden sm:inline-flex text-[10px] font-semibold uppercase tracking-wider text-accent bg-accent/10 rounded-full px-2 py-0.5 leading-4",children:s.topic.name}),s.type==="news"&&e.jsx("span",{className:"hidden sm:inline-flex text-[10px] font-semibold uppercase tracking-wider text-foreground
1/60 bg-muted rounded-full px-2 py-0.5 leading-4",children:"快讯"})]}),e.jsx("h2",{className:"font-serif text-[1.0625rem] font-semibold leading-snug text-foreground group-hover:text-accent transition-colors duration-200 line-clamp-2 mb-1.5 text-balance",children:s.title}),s.excerpt&&e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 leading-relaxed",children:s.excerpt}),e.jsxs("div",{className:"flex items-center gap-3 mt-2 text-xs text-muted-foreground/50",children:[!!s.viewCount&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(P,{className:"h-3 w-3"}),s.viewCount.toLocaleString()]}),!!s.readTime&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(v,{className:"h-3 w-3"}),s.readTime," åé"]})]})]}),s.coverImage?e.jsx("div",{className:"w-24 h-16 shrink-0 rounded-lg overflow-hidden bg-muted",children:e.jsx("img",{src:s.coverImage,alt:s.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500 ease-out"})}):e.jsx(B,{title:s.title,className:"w-24 h-16 shrink-0 rounded-lg text-2xl"})]})})}function o({title:s,icon:d,children:r}){return e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3 pb-2 border-b border-border",children:[e.jsx(d,{className:"h-3.5 w-3.5 text-muted-foreground"}),e.jsx("h3",{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground",children:s})]}),r]})}function te(){const s=_({from:"/{-$locale}/_main/_landing/"}),{data:d,isLoading:r,fetchNextPage:w,hasNextPage:p,isFetchingNextPage:c}=I(20,void 0,"relevant",void 0,s.articles,s.articlesFp??"v0"),{data:m}=D({limit:4},s.events),{data:x}=E(s.paidColumns),n=d?.pages.flat()??[],h=n.find(t=>t.isFeatured),k=n.filter(t=>t!==h);return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-5 md:px-8 py-10",children:[e.jsxs("header",{className:"mb-10 max-w-3xl",children:[e.jsx("h1",{className:"font-serif text-2xl md:text-[1.75rem] font-semibold leading-snug tracking-tight text-foreground",children:A}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed",children:"åç° AI Agentãå¼åå·¥å
·ã弿ºé¡¹ç®ä¸æç软件ï¼è·ä¸æ¯æ¥ç§æä¸å·¥ç¨å®è·µã"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[1fr_260px] gap-12",children:[e.jsxs("main",{className:"min-w-0",children:[!r&&h&&e.jsx($,{article:h}),r&&e.jsxs("div",{className:"rounded-xl border border-border bg-card p-10 mb-12",children:[e.jsx(a,{className:"h-3 w-16 mb-5"}),e.jsx(a,{className:"h-7 w-5/6 mb-2"}),e.jsx(a,{className:"h-7 w-4/6 mb-5"}),e.jsx(a,{className:"h-4 w-full mb-2"}),e.jsx(a,{className:"h-4 w-3/4 mb-8"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(a,{className:"h-7 w-7 rounded-full"}),e.jsx(a,{className:"h-3 w-36"})]})]}),e.jsxs("div",{className:"divide-y divide-border",children:[r&&Array.from({length:6}).map((t,l)=>e.jsxs("div",{className:"py-5",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(a,{className:"h-5 w-5 rounded-full"}),e.jsx(a,{className:"h-3 w-28"})]}),e.jsx(a,{className:"h-5 w-4/5 mb-1.5"}),e.jsx(a,{className:"h-4 w-full mb-1"}),e.jsx(a,{className:"h-4 w-2/3"})]},`sk-${l}`)),!r&&k.map(t=>e.jsx(O,{article:t},t.id)),!r&&n.length===0&&e.jsx("p",{className:"py-16 text-center text-sm text-muted-foreground",children:"ææ æç« "})]}),p&&e.jsx("div",{className:"mt-8 text-center",children:e.jsxs(F,{variant:"outline",size:"sm",className:"rounded-full px-6 text-xs",onClick:()=>w(),disabled:c,children:[c?"å è½½ä¸...":"å è½½æ´å¤",!c&&e.jsx(i,{className:"h-3.5 w-3.5 ml-1.5"})]})}),!p&&n.length>0&&e.jsx("p",{className:"mt-10 text-center text-xs text-muted-foreground/40 tracking-wider",children:"â END â"})]}),e.jsxs("aside",{className:"hidden md:flex flex-col gap-8",children:[(s.hotArticles?.length??0)>0&&e.jsx(o,{title:"çé¨é
读",icon:C,children:e.jsx(S,{articles:s.hotArticles??[]})}),e.jsx(o,{title:"æ¯æ¥ç®æ¥",icon:L,children:e.jsxs("a",{href:"https://diget.bytenote.net",target:"_blank",rel:"noopener noreferrer",className:u("flex items-start gap-2 px-3 py-2.5 rounded-lg","text-sm text-foreground
1/80 hover:text-foreground","hover:bg-muted transition-colors group"),children:[e.jsx(i,{className:"h-3.5 w-3.5 mt-0.5 shrink-0 text-muted-foreground group-hover:text-foreground transition-colors"}),e.jsx("span",{className:"line-clamp-2 leading-snug",children:"仿¥ç§æçç¹ï½è¿å» 24 å°æ¶ AI ä¸ç§ææ°é»ç®æ¥"})]})}),x&&x.length>0&&e.jsx(o,{title:"ä»è´¹ä¸æ ",icon:z,children:e.jsx("div",{className:"space-y-1",children:x.map(t=>e.jsxs("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:u("flex items-start gap-2 px-3 py-2.5 rounded-lg","text-sm text-foreground/80 hover:text-foreground","hover:bg-muted transition-colors group"),children:[e.jsx(i,{className:"h-3.5 w-3.5 mt-0.5 shrink-0 text-muted-foreground group-hover:text-foreground transition-colors"}),e.jsx("span",{className:"line-clamp-2 leading-snug",children:t.title})]},t.id))})}),m&&m.length>0&&e.jsx(o,{title:"è¿ææ´»å¨",icon:H,children:e.jsx("div",{className:"space-y-3",children:m.map(t=>{const l=e.jsxs("div",{className:"group cursor-pointer",children:[e.jsx("p",{className:"text-sm text-foreground/80 group-hover:text-foreground transition-colors leading-snug line-clamp-2 mb-1",children:t.title}),e.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[t.startAt&&e.jsx("span",{children:new Date(t.startAt).toLocaleDateString("zh-CN",{month:"short",day:"numeric"})}),e.jsx("span",{className:"text-border",children:"·"}),e.jsx("span",{children:t.isOnline?"线ä¸":t.location}),e.jsx("span",{className:"text-border",children:"·"}),e.jsxs("span",{children:[t.participantCount.toLocaleString()," 人"]})]})]});return t.onlineUrl?e.jsx("a",{href:t.onlineUrl,target:"_blank",rel:"noopener noreferrer",children:l},t.id):e.jsx("div",{children:l},t.id)})})}),e.jsx("a",{href:"https://link.bytenote.net/racknerd",target:"_blank",rel:"noopener noreferrer",className:"block w-full group",children:e.jsxs("div",{className:"border-2 border-foreground p-5 transition-all duration-100 hover:bg-foreground hover:text-background",children:[e.jsxs("div",{className:"flex items-baseline justify-between mb-4",children:[e.jsx("span",{className:"font-display text-lg font-semibold tracking-tight",children:"RackNerd"}),e.jsx("span",{className:"text-muted-foreground group-hover:text-background/50 text-xs",children:"VPS"})]}),e.jsxs("div",{className:"space-y-2 mb-5",children:[e.jsxs("div",{className:"flex items-baseline justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground group-hover:text-background/70",children:"CPU"}),e.jsx("span",{className:"font-display font-medium",children:"5 æ ¸"})]}),e.jsxs("div",{className:"flex items-baseline justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground group-hover:text-background/70",children:"SSD"}),e.jsx("span",{className:"font-display font-medium",children:"100 GB"})]}),e.jsxs("div",{className:"flex items-baseline justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground group-hover:text-background/70",children:"æµé"}),e.jsx("span",{className:"font-display font-medium",children:"10 TB/æ"})]}),e.jsxs("div",{className:"flex items-baseline justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground group-hover:text-background/70",children:"带宽"}),e.jsx("span",{className:"font-display font-medium",children:"1 Gbps"})]})]}),e.jsxs("div",{className:"border-t-2 border-current pt-3 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-baseline leading-none",children:[e.jsx("span",{className:"text-lg font-medium",children:"$"}),e.jsx("span",{className:"text-2xl font-display font-semibold tracking-tight",children:"44.98"}),e.jsx("span",{className:"text-xs text-muted-foreground group-hover:text-background/50 ml-1",children:"/å¹´"})]}),e.jsx(i,{className:"w-4 h-4 transition-transform duration-100 group-hover:translate-x-1"})]})]})})]})]})]})})}export{te as component};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.