import{c as y,d as N,h as r,i as e,j as i,u as n,k as m,F as h,t as a,m as u,n as I,r as p,p as L,E as T,X as A,A as B,T as E,w as q,H as R,I as P,D as v,v as D,o,J as S,K as F,z as G}from"./index-BLNwRZQA.js";import{A as f}from"./arrow-left-BhDR8hPT.js";import{T as H}from"./tag-BjtWTMw2.js";import{C as J}from"./circle-check-sG371N0X.js";/**
 * @license lucide-vue-next v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const K=y("ExternalLinkIcon",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
 * @license lucide-vue-next v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const O=y("GitBranchIcon",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
 * @license lucide-vue-next v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const X=y("ImageIcon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),Q={class:"min-h-screen"},W={key:0,class:"max-w-7xl mx-auto px-6 py-32 text-center"},Y={class:"relative max-w-7xl mx-auto px-6 py-20 md:py-28"},Z={class:"flex items-center gap-3 mb-5 flex-wrap"},ee={class:"inline-flex items-center gap-1.5 px-3 py-1 rounded-md text-xs font-medium bg-white/20 text-white backdrop-blur-sm"},te={class:"inline-flex items-center px-3 py-1 rounded-md text-xs font-medium bg-white/20 text-white backdrop-blur-sm"},se={class:"text-3xl md:text-5xl font-bold text-white mb-4 tracking-tight"},oe={class:"text-lg text-white/85 max-w-2xl leading-relaxed"},re={key:0,class:"mt-8 flex items-center gap-4 flex-wrap"},le=["href"],ne=["href"],ae={key:0,class:"max-w-7xl mx-auto px-6 -mt-10 relative z-10"},ie={class:"bg-card rounded-2xl shadow-float overflow-hidden border border-border/20"},de=["src","alt"],ue={key:0,class:"flex items-center justify-center gap-2 py-4"},ce=["onClick","aria-label"],xe=["src","alt"],me={class:"absolute bottom-6 left-1/2 -translate-x-1/2 text-white/70 text-sm"},he={class:"max-w-7xl mx-auto px-6 py-16"},ge={class:"grid grid-cols-1 lg:grid-cols-3 gap-10"},pe={class:"lg:col-span-2 space-y-12"},be={class:"text-muted-foreground leading-relaxed"},ve={key:0,class:"border-2 border-dashed border-border/40 rounded-2xl p-12 text-center bg-surface-container-lowest/50"},fe={class:"grid grid-cols-1 sm:grid-cols-2 gap-3"},ye={class:"text-sm text-foreground leading-relaxed"},we={class:"space-y-6"},ke={class:"bg-card rounded-xl shadow-card p-6 sticky top-24"},_e={class:"flex flex-wrap gap-2 mb-8"},Ce={class:"text-sm text-primary font-medium mb-8"},$e={key:0,class:"mt-16 pt-12 border-t border-border/20"},je={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},Ie={class:"font-semibold text-foreground group-hover:text-primary transition-colors mb-1.5"},Le={class:"text-xs text-muted-foreground mb-3"},Be={class:"text-sm text-muted-foreground leading-relaxed line-clamp-2"},Ne=N({__name:"ProductDetailView",setup(qe){const w=S(),k=R(),s=P(()=>F(w.params.id)),_=P(()=>G().filter(d=>{var t;return d.id!==w.params.id&&d.category===((t=s.value)==null?void 0:t.category)}).slice(0,3)),x=v(0),b=v(!1),c=v(0);function U(d){c.value=d,b.value=!0,document.body.style.overflow="hidden"}function C(){b.value=!1,document.body.style.overflow=""}function V(){var d;(d=s.value)!=null&&d.screenshots&&(c.value=(c.value-1+s.value.screenshots.length)%s.value.screenshots.length)}function z(){var d;(d=s.value)!=null&&d.screenshots&&(c.value=(c.value+1)%s.value.screenshots.length)}function M(){x.value=0}return M(),(d,t)=>{var j;const $=D("router-link");return o(),r("main",Q,[s.value?(o(),r(h,{key:1},[e("section",{class:I(`relative overflow-hidden bg-gradient-to-br ${s.value.gradient}`)},[t[8]||(t[8]=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",Y,[e("button",{onClick:t[1]||(t[1]=l=>n(k).push("/products")),class:"inline-flex items-center gap-1.5 text-white/80 hover:text-white text-sm mb-8 transition-colors"},[i(n(f),{class:"w-4 h-4"}),t[5]||(t[5]=m("杩斿洖浜у搧鍒楄〃 ",-1))]),e("div",Z,[e("span",ee,[i(n(H),{class:"w-3 h-3"}),m(a(s.value.category),1)]),e("span",te,a(s.value.status),1)]),e("h1",se,a(s.value.name),1),e("p",oe,a(s.value.summary),1),s.value.repoUrl||s.value.liveUrl?(o(),r("div",re,[s.value.repoUrl?(o(),r("a",{key:0,href:s.value.repoUrl,target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-2 bg-white/15 hover:bg-white/25 backdrop-blur-sm text-white px-6 py-2.5 rounded-xl text-sm font-medium transition-colors"},[i(n(O),{class:"w-4 h-4"}),t[6]||(t[6]=m("鏌ョ湅婧愮爜 ",-1))],8,le)):u("",!0),s.value.liveUrl?(o(),r("a",{key:1,href:s.value.liveUrl,target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-2 bg-white/15 hover:bg-white/25 backdrop-blur-sm text-white px-6 py-2.5 rounded-xl text-sm font-medium transition-colors"},[i(n(K),{class:"w-4 h-4"}),t[7]||(t[7]=m("鍦ㄧ嚎浣撻獙 ",-1))],8,ne)):u("",!0)])):u("",!0)])],2),s.value.screenshots&&s.value.screenshots.length>0?(o(),r("section",ae,[e("div",ie,[e("img",{src:s.value.screenshots[x.value],alt:`${s.value.name} 鎴浘 ${x.value+1}`,class:"w-full max-h-[520px] object-contain bg-muted cursor-zoom-in",onClick:t[2]||(t[2]=l=>U(x.value))},null,8,de),s.value.screenshots.length>1?(o(),r("div",ue,[(o(!0),r(h,null,p(s.value.screenshots,(l,g)=>(o(),r("button",{key:g,onClick:Pe=>x.value=g,class:I(`w-2.5 h-2.5 rounded-full transition-all ${g===x.value?"bg-primary w-7":"bg-border hover:bg-outline"}`),"aria-label":`鍒囨崲鍒版埅鍥� ${g+1}`},null,10,ce))),128))])):u("",!0)])])):u("",!0),(o(),L(E,{to:"body"},[b.value&&((j=s.value)!=null&&j.screenshots)?(o(),r("div",{key:0,class:"fixed inset-0 z-[9999] bg-black/90 flex items-center justify-center",onClick:T(C,["self"])},[e("button",{onClick:C,class:"absolute top-4 right-4 w-10 h-10 rounded-full bg-white/10 hover:bg-white/20 flex items-center justify-center text-white transition-colors"},[i(n(A),{class:"w-5 h-5"})]),s.value.screenshots.length>1?(o(),r("button",{key:0,onClick:V,class:"absolute left-4 w-10 h-10 rounded-full bg-white/10 hover:bg-white/20 flex items-center justify-center text-white transition-colors"},[i(n(f),{class:"w-5 h-5"})])):u("",!0),e("img",{src:s.value.screenshots[c.value],alt:`${s.value.name} 鎴浘 ${c.value+1}`,class:"max-w-[90vw] max-h-[85vh] object-contain rounded-lg shadow-2xl"},null,8,xe),s.value.screenshots.length>1?(o(),r("button",{key:1,onClick:z,class:"absolute right-4 w-10 h-10 rounded-full bg-white/10 hover:bg-white/20 flex items-center justify-center text-white transition-colors"},[i(n(B),{class:"w-5 h-5"})])):u("",!0),e("div",me,a(c.value+1)+" / "+a(s.value.screenshots.length),1)])):u("",!0)])),e("section",he,[e("div",ge,[e("div",pe,[e("div",null,[t[9]||(t[9]=e("h2",{class:"text-xl font-bold text-foreground mb-4"},"浜у搧浠嬬粛",-1)),e("p",be,a(s.value.description),1)]),!s.value.screenshots||s.value.screenshots.length===0?(o(),r("div",ve,[i(n(X),{class:"w-10 h-10 text-muted-foreground/40 mx-auto mb-3"}),t[10]||(t[10]=e("p",{class:"text-sm text-muted-foreground"},"浜у搧鎴浘 / 婕旂ず鍥鹃鐣欎綅",-1)),t[11]||(t[11]=e("p",{class:"text-xs text-muted-foreground/60 mt-1"},"鍙湪鍚庡彴绠$悊涓笂浼犲浘鐗囷紝灏嗗睍绀轰簬姝ゅ涓庝骇鍝佸崱鐗�",-1))])):u("",!0),e("div",null,[t[12]||(t[12]=e("h2",{class:"text-xl font-bold text-foreground mb-5"},"鏍稿績鍔熻兘",-1)),e("ul",fe,[(o(!0),r(h,null,p(s.value.features,l=>(o(),r("li",{key:l,class:"flex items-start gap-2.5 bg-card rounded-lg border border-border/20 p-4"},[i(n(J),{class:"w-4.5 h-4.5 w-5 h-5 text-success shrink-0 mt-0.5"}),e("span",ye,a(l),1)]))),128))])])]),e("aside",we,[e("div",ke,[t[14]||(t[14]=e("h3",{class:"text-base font-semibold text-foreground mb-4"},"鎶€鏈爤",-1)),e("div",_e,[(o(!0),r(h,null,p(s.value.techStack,l=>(o(),r("span",{key:l,class:"px-3 py-1 rounded-lg text-xs font-medium bg-primary/10 text-primary"},a(l),1))),128))]),t[15]||(t[15]=e("h3",{class:"text-base font-semibold text-foreground mb-3"},"椤圭洰鐘舵€�",-1)),e("p",Ce,a(s.value.status),1),i($,{to:"/contact",class:"group w-full inline-flex items-center justify-center gap-2 bg-primary text-primary-foreground px-6 py-3 rounded-xl text-sm font-semibold hover:bg-primary/90 transition-all shadow-float"},{default:q(()=>[t[13]||(t[13]=m(" 鍜ㄨ绫讳技鏂规 ",-1)),i(n(B),{class:"w-4 h-4 group-hover:translate-x-0.5 transition-transform"})]),_:1})])])]),_.value.length>0?(o(),r("div",$e,[t[16]||(t[16]=e("h2",{class:"text-xl font-bold text-foreground mb-6"},"鍚岀被鍒骇鍝�",-1)),e("div",je,[(o(!0),r(h,null,p(_.value,l=>(o(),L($,{key:l.id,to:`/products/${l.id}`,class:"group bg-card rounded-xl border border-border/20 p-5 hover:border-primary/20 hover:shadow-card transition-all"},{default:q(()=>[e("h3",Ie,a(l.name),1),e("p",Le,a(l.status),1),e("p",Be,a(l.summary),1)]),_:2},1032,["to"]))),128))])])):u("",!0)])],64)):(o(),r("div",W,[t[4]||(t[4]=e("h1",{class:"text-2xl font-bold text-foreground mb-4"},"鏈壘鍒拌椤圭洰",-1)),e("button",{onClick:t[0]||(t[0]=l=>n(k).push("/products")),class:"inline-flex items-center gap-2 text-primary hover:underline"},[i(n(f),{class:"w-4 h-4"}),t[3]||(t[3]=m("杩斿洖浜у搧鍒楄〃 ",-1))])]))])}}});export{Ne as default};