import{c as w,d as A,E as N,h as r,i as t,j as d,u as a,k as x,F as g,t as i,m as u,n as I,r as b,p as L,H as T,X as D,A as q,T as E,w as B,I as R,J as M,D as v,v as S,o,K as F,M as G,z as H}from"./index-BaUdY5Ul.js";import{A as y}from"./arrow-left-BS3Hl2cE.js";import{T as J}from"./tag-Clbyh5YD.js";import{C as K}from"./circle-check-BbYepeVs.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 O=w("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 X=w("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 Q=w("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"}]]),W={class:"min-h-screen"},Y={key:0,class:"max-w-7xl mx-auto px-6 py-32 text-center"},Z={class:"relative max-w-7xl mx-auto px-6 py-20 md:py-28"},ee={class:"flex items-center gap-3 mb-5 flex-wrap"},te={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"},se={class:"inline-flex items-center px-3 py-1 rounded-md text-xs font-medium bg-white/20 text-white backdrop-blur-sm"},oe={class:"text-3xl md:text-5xl font-bold text-white mb-4 tracking-tight"},re={class:"text-lg text-white/85 max-w-2xl leading-relaxed"},le={key:0,class:"mt-8 flex items-center gap-4 flex-wrap"},ne=["href"],ae=["href"],ie={key:0,class:"max-w-7xl mx-auto px-6 -mt-10 relative z-10"},de={class:"bg-card rounded-2xl shadow-float overflow-hidden border border-border/20"},ue=["src","alt"],ce={key:0,class:"flex items-center justify-center gap-2 py-4"},me=["onClick","aria-label"],xe=["src","alt"],he={class:"absolute bottom-6 left-1/2 -translate-x-1/2 text-white/70 text-sm"},ge={class:"max-w-7xl mx-auto px-6 py-16"},pe={class:"grid grid-cols-1 lg:grid-cols-3 gap-10"},be={class:"lg:col-span-2 space-y-12"},fe={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"},ye={class:"grid grid-cols-1 sm:grid-cols-2 gap-3"},we={class:"text-sm text-foreground leading-relaxed"},ke={class:"space-y-6"},_e={class:"bg-card rounded-xl shadow-card p-6 sticky top-24"},Ce={class:"flex flex-wrap gap-2 mb-8"},$e={class:"text-sm text-primary font-medium mb-8"},je={key:0,class:"mt-16 pt-12 border-t border-border/20"},Ie={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},Le={class:"font-semibold text-foreground group-hover:text-primary transition-colors mb-1.5"},qe={class:"text-xs text-muted-foreground mb-3"},Be={class:"text-sm text-muted-foreground leading-relaxed line-clamp-2"},Ne=A({__name:"ProductDetailView",setup(Me){const k=F(),_=R(),s=M(()=>G(k.params.id)),C=M(()=>H().filter(l=>{var e;return l.id!==k.params.id&&l.category===((e=s.value)==null?void 0:e.category)}).slice(0,3));N(s,l=>{var e;if(l){document.title=`${l.name} | 缁寸儻缃戠粶`;const h=document.querySelector('meta[name="description"]');h&&h.setAttribute("content",l.summary||((e=l.description)==null?void 0:e.slice(0,160))||"")}},{immediate:!0});const m=v(0),f=v(!1),c=v(0);function P(l){c.value=l,f.value=!0,document.body.style.overflow="hidden"}function $(){f.value=!1,document.body.style.overflow=""}function U(){var l;(l=s.value)!=null&&l.screenshots&&(c.value=(c.value-1+s.value.screenshots.length)%s.value.screenshots.length)}function V(){var l;(l=s.value)!=null&&l.screenshots&&(c.value=(c.value+1)%s.value.screenshots.length)}function z(){m.value=0}return z(),(l,e)=>{var j;const h=S("router-link");return o(),r("main",W,[s.value?(o(),r(g,{key:1},[t("section",{class:I(`relative overflow-hidden bg-gradient-to-br ${s.value.gradient}`)},[e[8]||(e[8]=t("div",{class:"absolute inset-0 bg-[radial-gradient(circle_at_30%_40%,rgba(255,255,255,0.15),transparent_60%)]"},null,-1)),t("div",Z,[t("button",{onClick:e[1]||(e[1]=n=>a(_).push("/products")),class:"inline-flex items-center gap-1.5 text-white/80 hover:text-white text-sm mb-8 transition-colors"},[d(a(y),{class:"w-4 h-4"}),e[5]||(e[5]=x("杩斿洖浜у搧鍒楄〃 ",-1))]),t("div",ee,[t("span",te,[d(a(J),{class:"w-3 h-3"}),x(i(s.value.category),1)]),t("span",se,i(s.value.status),1)]),t("h1",oe,i(s.value.name),1),t("p",re,i(s.value.summary),1),s.value.repoUrl||s.value.liveUrl?(o(),r("div",le,[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"},[d(a(X),{class:"w-4 h-4"}),e[6]||(e[6]=x("鏌ョ湅婧愮爜 ",-1))],8,ne)):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"},[d(a(O),{class:"w-4 h-4"}),e[7]||(e[7]=x("鍦ㄧ嚎浣撻獙 ",-1))],8,ae)):u("",!0)])):u("",!0)])],2),s.value.screenshots&&s.value.screenshots.length>0?(o(),r("section",ie,[t("div",de,[t("img",{src:s.value.screenshots[m.value],alt:`${s.value.name} 鎴浘 ${m.value+1}`,class:"w-full max-h-[520px] object-contain bg-muted cursor-zoom-in",onClick:e[2]||(e[2]=n=>P(m.value))},null,8,ue),s.value.screenshots.length>1?(o(),r("div",ce,[(o(!0),r(g,null,b(s.value.screenshots,(n,p)=>(o(),r("button",{key:p,onClick:Pe=>m.value=p,class:I(`w-2.5 h-2.5 rounded-full transition-all ${p===m.value?"bg-primary w-7":"bg-border hover:bg-outline"}`),"aria-label":`鍒囨崲鍒版埅鍥� ${p+1}`},null,10,me))),128))])):u("",!0)])])):u("",!0),(o(),L(E,{to:"body"},[f.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($,["self"])},[t("button",{onClick:$,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"},[d(a(D),{class:"w-5 h-5"})]),s.value.screenshots.length>1?(o(),r("button",{key:0,onClick:U,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"},[d(a(y),{class:"w-5 h-5"})])):u("",!0),t("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:V,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"},[d(a(q),{class:"w-5 h-5"})])):u("",!0),t("div",he,i(c.value+1)+" / "+i(s.value.screenshots.length),1)])):u("",!0)])),t("section",ge,[t("div",pe,[t("div",be,[t("div",null,[e[9]||(e[9]=t("h2",{class:"text-xl font-bold text-foreground mb-4"},"浜у搧浠嬬粛",-1)),t("p",fe,i(s.value.description),1)]),!s.value.screenshots||s.value.screenshots.length===0?(o(),r("div",ve,[d(a(Q),{class:"w-10 h-10 text-muted-foreground/40 mx-auto mb-3"}),e[10]||(e[10]=t("p",{class:"text-sm text-muted-foreground"},"浜у搧鎴浘 / 婕旂ず鍥鹃鐣欎綅",-1)),e[11]||(e[11]=t("p",{class:"text-xs text-muted-foreground/60 mt-1"},"鍙湪鍚庡彴绠$悊涓笂浼犲浘鐗囷紝灏嗗睍绀轰簬姝ゅ涓庝骇鍝佸崱鐗�",-1))])):u("",!0),t("div",null,[e[12]||(e[12]=t("h2",{class:"text-xl font-bold text-foreground mb-5"},"鏍稿績鍔熻兘",-1)),t("ul",ye,[(o(!0),r(g,null,b(s.value.features,n=>(o(),r("li",{key:n,class:"flex items-start gap-2.5 bg-card rounded-lg border border-border/20 p-4"},[d(a(K),{class:"w-4.5 h-4.5 w-5 h-5 text-success shrink-0 mt-0.5"}),t("span",we,i(n),1)]))),128))])])]),t("aside",ke,[t("div",_e,[e[14]||(e[14]=t("h3",{class:"text-base font-semibold text-foreground mb-4"},"鎶€鏈爤",-1)),t("div",Ce,[(o(!0),r(g,null,b(s.value.techStack,n=>(o(),r("span",{key:n,class:"px-3 py-1 rounded-lg text-xs font-medium bg-primary/10 text-primary"},i(n),1))),128))]),e[15]||(e[15]=t("h3",{class:"text-base font-semibold text-foreground mb-3"},"椤圭洰鐘舵€�",-1)),t("p",$e,i(s.value.status),1),d(h,{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:B(()=>[e[13]||(e[13]=x(" 鍜ㄨ绫讳技鏂规 ",-1)),d(a(q),{class:"w-4 h-4 group-hover:translate-x-0.5 transition-transform"})]),_:1})])])]),C.value.length>0?(o(),r("div",je,[e[16]||(e[16]=t("h2",{class:"text-xl font-bold text-foreground mb-6"},"鍚岀被鍒骇鍝�",-1)),t("div",Ie,[(o(!0),r(g,null,b(C.value,n=>(o(),L(h,{key:n.id,to:`/products/${n.id}`,class:"group bg-card rounded-xl border border-border/20 p-5 hover:border-primary/20 hover:shadow-card transition-all"},{default:B(()=>[t("h3",Le,i(n.name),1),t("p",qe,i(n.status),1),t("p",Be,i(n.summary),1)]),_:2},1032,["to"]))),128))])])):u("",!0)])],64)):(o(),r("div",Y,[e[4]||(e[4]=t("h1",{class:"text-2xl font-bold text-foreground mb-4"},"鏈壘鍒拌椤圭洰",-1)),t("button",{onClick:e[0]||(e[0]=n=>a(_).push("/products")),class:"inline-flex items-center gap-2 text-primary hover:underline"},[d(a(y),{class:"w-4 h-4"}),e[3]||(e[3]=x("杩斿洖浜у搧鍒楄〃 ",-1))])]))])}}});export{Ne as default};