import{d as _,M as v,h as a,i as e,j as d,u as o,F as p,r as u,D as h,o as r,n as x,t as n,p as w,w as y,k as g,N as k,A as N,v as C}from"./index-BLNwRZQA.js";import{N as B}from"./newspaper-CLXoERXF.js";import{T as S}from"./tag-BjtWTMw2.js";const T={class:"min-h-screen"},V={class:"relative overflow-hidden border-b border-border/10"},$={class:"relative max-w-7xl mx-auto px-6 py-20 md:py-28"},A={class:"flex items-center gap-2 text-primary text-sm font-medium mb-4"},D={class:"max-w-7xl mx-auto px-6 pt-10 pb-6"},E={class:"flex items-center gap-2 flex-wrap"},L=["onClick"],F={class:"max-w-7xl mx-auto px-6 pb-20"},j={key:0,class:"text-center py-20"},z={key:1,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"},M={class:"absolute bottom-4 left-4"},P={class:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-medium bg-white/20 text-white backdrop-blur-sm"},R={class:"p-5"},U={class:"flex items-center gap-1.5 text-xs text-muted-foreground mb-3"},W={class:"text-base font-semibold text-foreground mb-2 line-clamp-2 group-hover:text-primary transition-colors"},q={class:"text-sm text-muted-foreground leading-relaxed line-clamp-3 mb-4"},G={class:"inline-flex items-center gap-1.5 text-sm font-medium text-primary hover:gap-2.5 transition-all"},Q=_({__name:"NewsView",setup(H){const c=v(),f=["鍏ㄩ儴",...new Set(c.map(l=>l.category))],i=h("鍏ㄩ儴");function m(l){return i.value==="鍏ㄩ儴"||i.value===l.category}return(l,t)=>{const b=C("router-link");return r(),a("main",T,[e("section",V,[t[3]||(t[3]=e("div",{class:"absolute inset-0 bg-gradient-to-br from-primary/5 via-transparent to-primary/3 pointer-events-none"},null,-1)),e("div",$,[e("div",A,[d(o(B),{class:"w-4 h-4"}),t[0]||(t[0]=e("span",null,"NEWS & UPDATES",-1))]),t[1]||(t[1]=e("h1",{class:"text-3xl md:text-4xl font-bold text-foreground mb-4 tracking-tight"},"鏂伴椈鍔ㄦ€�",-1)),t[2]||(t[2]=e("p",{class:"text-lg text-muted-foreground max-w-2xl leading-relaxed"},"浜嗚В缁寸儻缃戠粶鏈€鏂拌祫璁紝鎺屾彙琛屼笟鍓嶆部鍔ㄦ€�",-1))])]),e("section",D,[e("div",E,[(r(),a(p,null,u(f,s=>e("button",{key:s,onClick:I=>i.value=s,class:x(`px-4 py-2 rounded-lg text-sm font-medium transition-all ${i.value===s?"bg-primary text-primary-foreground shadow-card":"bg-muted text-muted-foreground hover:text-foreground hover:bg-surface-container-high"}`)},n(s),11,L)),64))])]),e("section",F,[o(c).filter(m).length===0?(r(),a("div",j,[...t[4]||(t[4]=[e("p",{class:"text-muted-foreground"},"鏆傛棤鐩稿叧鏂伴椈",-1)])])):(r(),a("div",z,[(r(!0),a(p,null,u(o(c).filter(m),s=>(r(),w(b,{key:s.id,to:`/news/${s.id}`,class:"group bg-card rounded-xl overflow-hidden shadow-card hover:shadow-float transition-all duration-300 border border-border/10 hover:border-primary/20 block"},{default:y(()=>[e("div",{class:x(`relative h-48 bg-gradient-to-br ${s.gradient} overflow-hidden`)},[t[5]||(t[5]=e("div",{class:"absolute inset-0 bg-[radial-gradient(circle_at_30%_40%,rgba(255,255,255,0.15),transparent_60%)]"},null,-1)),e("div",M,[e("span",P,[d(o(S),{class:"w-3 h-3"}),g(" "+n(s.category),1)])])],2),e("div",R,[e("div",U,[d(o(k),{class:"w-3.5 h-3.5"}),e("time",null,n(s.date),1)]),e("h3",W,n(s.title),1),e("p",q,n(s.desc),1),e("div",G,[t[6]||(t[6]=g(" 闃呰璇︽儏 ",-1)),d(o(N),{class:"w-3.5 h-3.5"})])])]),_:2},1032,["to"]))),128))]))])])}}});export{Q as default};