Help
RSS
API
Feed
Maltego
Contact
Domain > apicdn.1desks.net
×
More information on this domain is in
AlienVault OTX
Is this malicious?
Yes
No
DNS Resolutions
Date
IP Address
2024-07-20
172.234.195.53
(
ClassC
)
2025-01-06
43.159.107.102
(
ClassC
)
2025-11-20
43.175.7.2
(
ClassC
)
Port 443
HTTP/1.1 401 Authorization RequiredContent-Type: text/html; charsetutf8ETag: 684427c9-b280Server: ApacheContent-Length: 45696Connection: keep-alivealt-svc: h3:443; ma2592000,h3-29:443; ma2592000,h3-Q050:443; ma2592000,quic:443; ma2592000; v46,43Date: Thu, 20 Nov 2025 04:27:01 GMTEO-LOG-UUID: 5219884469400427930EO-Cache-Status: MISS !DOCTYPE html>html langzh-CN>head> meta charsetUTF-8> meta nameviewport contentwidthdevice-width, initial-scale1.0> title>古诗词雅集 - 传承千年文化之美/title> style>/* 重置样式 */* { margin: 0; padding: 0; box-sizing: border-box;}/* 基础样式 */body { font-family: Noto Serif SC, serif; line-height: 1.6; color: #2c3e50; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); min-height: 100vh;}.container { max-width: 1200px; margin: 0 auto; padding: 0 20px;}/* 导航栏 */.header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: all 0.3s ease;}.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 80px;}.logo h1 { font-size: 1.8rem; color: #8b4513; font-weight: 600; margin-bottom: 2px;}.logo .subtitle { font-size: 0.9rem; color: #666; font-weight: 300;}.nav-menu { display: flex; list-style: none; gap: 2rem;}.nav-link { text-decoration: none; color: #2c3e50; font-weight: 500; transition: all 0.3s ease; position: relative; padding: 0.5rem 0;}.nav-link:hover,.nav-link.active { color: #8b4513;}.nav-link::after { content: ; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, #8b4513, #cd853f); transition: width 0.3s ease;}.nav-link:hover::after,.nav-link.active::after { width: 100%;}.hamburger { display: none; flex-direction: column; cursor: pointer;}.hamburger span { width: 25px; height: 3px; background: #2c3e50; margin: 3px 0; transition: 0.3s;}/* 首页横幅 */.hero { margin-top: 80px; min-height: 70vh; display: flex; align-items: center; justify-content: center; position: relative; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; overflow: hidden;}.hero::before { content: ; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url(data:image/svg+xml,svg xmlnshttp://www.w3.org/2000/svg viewBox0 0 100 100>defs>pattern idgrain width100 height100 patternUnitsuserSpaceOnUse>circle cx25 cy25 r1 fillrgba(255,255,255,0.1)/>circle cx75 cy75 r1 fillrgba(255,255,255,0.1)/>circle cx50 cy10 r0.5 fillrgba(255,255,255,0.05)/>circle cx10 cy60 r0.5 fillrgba(255,255,255,0.05)/>circle cx90 cy40 r0.5 fillrgba(255,255,255,0.05)/>/pattern>/defs>rect width100 height100 fillurl(%23grain)/>/svg>); opacity: 0.3;}.hero-content { text-align: center; z-index: 2; position: relative;}.hero-title { font-size: 3rem; margin-bottom: 1rem; font-weight: 600; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);}.hero-subtitle { font-size: 1.2rem; margin-bottom: 3rem; opacity: 0.9;}.featured-poem { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 20px; padding: 2rem; border: 1px solid rgba(255, 255, 255, 0.2); max-width: 500px; margin: 0 auto;}.featured-poem h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #ffd700;}.featured-poem .poet { font-size: 1rem; opacity: 0.8; margin-bottom: 1rem;}.poem-text p { font-size: 1.1rem; margin-bottom: 0.5rem; line-height: 1.8;}.hero-decoration { position: absolute; top: 50%; right: 10%; transform: translateY(-50%); width: 200px; height: 200px; background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%); border-radius: 50%; z-index: 1;}/* 诗词精选 */.poems-section { padding: 5rem 0; background: #fff;}.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: #2c3e50; position: relative;}.section-title::after { content: ; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background: linear-gradient(90deg, #8b4513, #cd853f); border-radius: 2px;}.poems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; margin-top: 2rem;}.poem-card { background: #fff; border-radius: 15px; padding: 2rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; border: 1px solid #f0f0f0; position: relative; overflow: hidden;}.poem-card::before { content: ; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #8b4513, #cd853f);}.poem-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);}.poem-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #eee;}.poem-header h3 { font-size: 1.3rem; color: #2c3e50; font-weight: 600;}.poem-header .poet { color: #8b4513; font-weight: 500; font-size: 1rem;}.poem-body p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 0.8rem; color: #34495e; text-align: center;}.poem-footer { display: flex; justify-content: space-between; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #eee;}.poem-footer span { background: #f8f9fa; padding: 0.3rem 0.8rem; border-radius: 15px; font-size: 0.9rem; color: #666;}.dynasty { background: linear-gradient(135deg, #667eea, #764ba2) !important; color: white !important;}.category { background: linear-gradient(135deg, #f093fb, #f5576c) !important; color: white !important;}/* 诗人部分 */.poets-section { padding: 5rem 0; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);}.poets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem;}.poet-card { background: #fff; border-radius: 20px; padding: 2rem; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; position: relative; overflow: hidden;}.poet-card::before { content: ; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent, rgba(139, 69, 19, 0.1), transparent); transform: rotate(45deg); transition: all 0.6s ease; opacity: 0;}.poet-card:hover::before { opacity: 1; top: -100%; left: -100%;}.poet-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);}.poet-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; position: relative; z-index: 2;}.poet-initial { font-size: 2rem; font-weight: 600; color: white;}.poet-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #2c3e50; position: relative; z-index: 2;}.poet-title { color: #8b4513; font-weight: 500; margin-bottom: 1rem; position: relative; z-index: 2;}.poet-desc { color: #666; line-height: 1.6; margin-bottom: 1.5rem; position: relative; z-index: 2;}.poet-stats { display: flex; justify-content: center; gap: 1rem; position: relative; z-index: 2;}.poet-stats span { background: #f8f9fa; padding: 0.3rem 0.8rem; border-radius: 15px; font-size: 0.9rem; color: #666;}/* 朝代时间线 */.dynasties-section { padding: 5rem 0; background: #fff;}.dynasties-timeline { position: relative; max-width: 800px; margin: 0 auto;}.dynasties-timeline::before { content: ; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, #8b4513, #cd853f); transform: translateX(-50%);}.dynasty-item { display: flex; align-items: center; margin-bottom: 3rem; position: relative;}.dynasty-item:nth-child(odd) { flex-direction: row-reverse;}.dynasty-item:nth-child(odd) .dynasty-content { text-align: right; margin-right: 3rem;}.dynasty-item:nth-child(even) .dynasty-content { margin-left: 3rem;}.dynasty-marker { width: 20px; height: 20px; background: #8b4513; border-radius: 50%; position: absolute; left: 50%; transform: translateX(-50%); z-index: 2; border: 4px solid #fff; box-shadow: 0 0 0 4px #8b4513;}.dynasty-content { background: #fff; padding: 1.5rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); flex: 1; max-width: 300px;}.dynasty-content h3 { font-size: 1.3rem; color: #2c3e50; margin-bottom: 0.5rem;}.dynasty-content p { color: #666; margin-bottom: 0.5rem;}.dynasty-period { font-size: 0.9rem; color: #8b4513; font-weight: 500;}/* 搜索部分 */.search-section { padding: 5rem 0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white;}.search-section .section-title { color: white;}.search-container { max-width: 600px; margin: 0 auto;}.search-box { display: flex; margin-bottom: 2rem; border-radius: 50px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);}#searchInput { flex: 1; padding: 1rem 1.5rem; border: none; font-size: 1rem; outline: none; background: rgba(255, 255, 255, 0.9);}#searchBtn { padding: 1rem 2rem; background: #8b4513; color: white; border: none; cursor: pointer; font-weight: 500; transition: background 0.3s ease;}#searchBtn:hover { background: #a0522d;}.search-filters { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;}.filter-btn { padding: 0.5rem 1rem; background: rgba(255, 255, 255, 0.2); color: white; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 25px; cursor: pointer; transition: all 0.3s ease;}.filter-btn:hover,.filter-btn.active { background: rgba(255, 255, 255, 0.3); border-color: rgba(255, 255, 255, 0.5);}.search-results { min-height: 200px; background: rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 2rem; backdrop-filter: blur(10px);}/* 页脚 */.footer { background: #2c3e50; color: white; padding: 3rem 0 1rem;}.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem;}.footer-section h3,.footer-section h4 { margin-bottom: 1rem; color: #ecf0f1;}.footer-section p { color: #bdc3c7; line-height: 1.6;}.footer-section ul { list-style: none;}.footer-section ul li { margin-bottom: 0.5rem;}.footer-section ul li a { color: #bdc3c7; text-decoration: none; transition: color 0.3s ease;}.footer-section ul li a:hover { color: #ecf0f1;}.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #34495e; color: #bdc3c7;}/* 响应式设计 */@media (max-width: 768px) { .hamburger { display: flex; } .nav-menu { display: none; } .hero-title { font-size: 2rem; } .hero-subtitle { font-size: 1rem; } .featured-poem { padding: 1.5rem; } .poems-grid { grid-template-columns: 1fr; gap: 1.5rem; } .poets-grid { grid-template-columns: 1fr; gap: 1.5rem; } .dynasty-item { flex-direction: column !important; text-align: center; } .dynasty-item:nth-child(odd) .dynasty-content, .dynasty-item:nth-child(even) .dynasty-content { margin: 2rem 0 0 0; text-align: center; } .dynasties-timeline::before { display: none; } .dynasty-marker { position: relative; left: auto; transform: none; margin-bottom: 1rem; } .search-filters { gap: 0.5rem; } .filter-btn { padding: 0.4rem 0.8rem; font-size: 0.9rem; }}@media (max-width: 480px) { .container { padding: 0 15px; } .nav-container { padding: 0 15px; } .hero-title { font-size: 1.8rem; } .section-title { font-size: 2rem; } .poem-card, .poet-card { padding: 1.5rem; } .search-box { flex-direction: column; border-radius: 15px; } #searchInput { border-radius: 15px 15px 0 0; } #searchBtn { border-radius: 0 0 15px 15px; }}/* 动画效果 */@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); }}.poem-card,.poet-card,.dynasty-item { animation: fadeInUp 0.6s ease forwards;}/* 滚动条样式 */::-webkit-scrollbar { width: 8px;}::-webkit-scrollbar-track { background: #f1f1f1;}::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #8b4513, #cd853f); border-radius: 4px;}::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #a0522d, #daa520);}/* 搜索结果样式 */.search-header { text-align: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.3);}.search-header h3 { color: white; margin-bottom: 0.5rem;}.search-header p { color: rgba(255, 255, 255, 0.8);}.results-grid { display: grid; gap: 1rem;}.result-card { background: rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 1.5rem; border: 1px solid rgba(255, 255, 255, 0.2); transition: all 0.3s ease;}.result-card:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px);}.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;}.result-header h4 { color: #ffd700; margin: 0;}.result-poet { color: rgba(255, 255, 255, 0.8);}.result-content p { color: white; margin-bottom: 0.5rem; line-height: 1.6;}.result-tags { display: flex; gap: 0.5rem; margin-top: 1rem;}.dynasty-tag,.category-tag { background: rgba(255, 255, 255, 0.2); color: white; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.8rem;}.no-results,.search-placeholder { text-align: center; color: rgba(255, 255, 255, 0.8); padding: 3rem 1rem;}.no-results h3,.search-placeholder h3 { color: white; margin-bottom: 1rem;}mark { background: #ffd700; color: #2c3e50; padding: 0.1rem 0.2rem; border-radius: 3px;}.poet-modal h2 { color: #2c3e50; margin-bottom: 1rem; text-align: center;}.poet-description { color: #666; line-height: 1.6; margin-bottom: 2rem;}.poet-details { display: grid; gap: 1.5rem;}.detail-section h4 { color: #8b4513; margin-bottom: 0.5rem;}.detail-section ul { list-style: none; padding: 0;}.detail-section li { background: #f8f9fa; padding: 0.5rem; margin-bottom: 0.3rem; border-radius: 5px; color: #666;} /style> link relpreconnect hrefhttps://fonts.googleapis.com> link relpreconnect hrefhttps://fonts.gstatic.com crossorigin> link hrefhttps://fonts.googleapis.com/css2?familyNoto+Serif+SC:wght@300;400;500;600;700&displayswap relstylesheet>/head>body> header classheader> nav classnav> div classnav-container> div classlogo> h1>古诗词雅集/h1> span classsubtitle>千年文化 诗韵流传/span> /div> ul classnav-menu> li>a href#home classnav-link active>首页/a>/li> li>a href#poems classnav-link>诗词/a>/li> li>a href#poets classnav-link>诗人/a>/li> li>a href#dynasties classnav-link>朝代/a>/li> li>a href#search classnav-link>搜索/a>/li> /ul> div classhamburger> span>/span> span>/span> span>/span> /div> /div> /nav> /header> main> !-- 首页横幅 --> section idhome classhero> div classhero-content> h2 classhero-title>诗词之美,传承千年/h2> p classhero-subtitle>品味古典文学的韵律与意境/p> div classfeatured-poem> div classpoem-content> h3>静夜思/h3> p classpoet>李白/p> div classpoem-text> p>床前明月光,疑是地上霜。/p> p>举头望明月,低头思故乡。/p> /div> /div> /div> /div> div classhero-decoration>/div> /section> !-- 诗词精选 --> section idpoems classpoems-section> div classcontainer> h2 classsection-title>诗词精选/h2> div classpoems-grid> div classpoem-card> div classpoem-header> h3>春晓/h3> span classpoet>孟浩然/span> /div> div classpoem-body> p>春眠不觉晓,处处闻啼鸟。/p> p>夜来风雨声,花落知多少。/p> /div> div classpoem-footer> span classdynasty>唐代/span> span classcategory>田园诗/span> /div> /div> div classpoem-card> div classpoem-header> h3>登鹳雀楼/h3> span classpoet>王之涣/span> /div> div classpoem-body> p>白日依山尽,黄河入海流。/p> p>欲穷千里目,更上一层楼。/p> /div> div classpoem-footer> span classdynasty>唐代/span> span classcategory>边塞诗/span> /div> /div> div classpoem-card> div classpoem-header> h3>相思/h3> span classpoet>王维/span> /div> div classpoem-body> p>红豆生南国,春来发几枝。/p> p>愿君多采撷,此物最相思。/p> /div> div classpoem-footer> span classdynasty>唐代/span> span classcategory>爱情诗/span> /div> /div> div classpoem-card> div classpoem-header> h3>水调歌头/h3> span classpoet>苏轼/span> /div> div classpoem-body> p>明月几时有?把酒问青天。/p> p>不知天上宫阙,今夕是何年。/p> /div> div classpoem-footer> span classdynasty>宋代/span> span classcategory>豪放词/span> /div> /div> div classpoem-card> div classpoem-header> h3>江雪/h3> span classpoet>柳宗元/span> /div> div classpoem-body> p>千山鸟飞绝,万径人踪灭。/p> p>孤舟蓑笠翁,独钓寒江雪。/p> /div> div classpoem-footer> span classdynasty>唐代/span> span classcategory>山水诗/span> /div> /div> div classpoem-card> div classpoem-header> h3>如梦令/h3> span classpoet>李清照/span> /div> div classpoem-body> p>常记溪亭日暮,沉醉不知归路。/p> p>兴尽晚回舟,误入藕花深处。/p> /div> div classpoem-footer> span classdynasty>宋代/span> span classcategory>婉约词/span> /div> /div> /div> /div> /section> !-- 著名诗人 --> section idpoets classpoets-section> div classcontainer> h2 classsection-title>著名诗人/h2> div classpoets-grid> div classpoet-card> div classpoet-avatar> span classpoet-initial>李/span> /div> h3>李白/h3> p classpoet-title>诗仙/p> p classpoet-desc>豪放飘逸,想象丰富,语言流转自然,音律和谐多变。/p> div classpoet-stats> span>唐代/span> span>浪漫主义/span> /div> /div> div classpoet-card> div classpoet-avatar> span classpoet-initial>杜/span> /div> h3>杜甫/h3> p classpoet-title>诗圣/p> p classpoet-desc>忧国忧民,人格高尚,诗艺精湛,被奉为诗圣。/p> div classpoet-stats> span>唐代/span> span>现实主义/span> /div> /div> div classpoet-card> div classpoet-avatar> span classpoet-initial>苏/span> /div> h3>苏轼/h3> p classpoet-title>文豪/p> p classpoet-desc>豪放派代表,文学造诣极高,诗词文赋无所不精。/p> div classpoet-stats> span>宋代/span> span>豪放派/span> /div> /div> div classpoet-card> div classpoet-avatar> span classpoet-initial>李/span> /div> h3>李清照/h3> p classpoet-title>词后/p> p classpoet-desc>婉约派代表,词风清新,感情真挚,艺术造诣极高。/p> div classpoet-stats> span>宋代/span> span>婉约派/span> /div> /div> /div> /div> /section> !-- 朝代分类 --> section iddynasties classdynasties-section> div classcontainer> h2 classsection-title>历代诗词/h2> div classdynasties-timeline> div classdynasty-item> div classdynasty-marker>/div> div classdynasty-content> h3>先秦/h3> p>《诗经》、《楚辞》/p> span classdynasty-period>公元前11世纪-公元前221年/span> /div> /div> div classdynasty-item> div classdynasty-marker>/div> div classdynasty-content> h3>汉代/h3> p>汉乐府、古诗十九首/p> span classdynasty-period>公元前206年-公元220年/span> /div> /div> div classdynasty-item> div classdynasty-marker>/div> div classdynasty-content> h3>唐代/h3> p>诗歌黄金时代/p> span classdynasty-period>公元618年-公元907年/span> /div> /div> div classdynasty-item> div classdynasty-marker>/div> div classdynasty-content> h3>宋代/h3> p>词的繁荣发展/p> span classdynasty-period>公元960年-公元1279年/span> /div> /div> div classdynasty-item> div classdynasty-marker>/div> div classdynasty-content> h3>元明清/h3> p>曲、诗词并举/p> span classdynasty-period>公元1271年-公元1912年/span> /div> /div> /div> /div> /section> !-- 搜索功能 --> section idsearch classsearch-section> div classcontainer> h2 classsection-title>诗词搜索/h2> div classsearch-container> div classsearch-box> input typetext idsearchInput placeholder搜索诗词、诗人或关键词...> button idsearchBtn>搜索/button> /div> div classsearch-filters> button classfilter-btn active data-filterall>全部/button> button classfilter-btn data-filtertang>唐代/button> button classfilter-btn data-filtersong>宋代/button> button classfilter-btn data-filterlove>爱情/button> button classfilter-btn data-filternature>山水/button> /div> div idsearchResults classsearch-results>/div> /div> /div> /section> /main> footer classfooter> div classcontainer> div classfooter-content> div classfooter-section> h3>古诗词雅集/h3> p>传承中华优秀传统文化,品味古典诗词之美。/p> /div> div classfooter-section> h4>快速导航/h4> ul> li>a href#home>首页/a>/li> li>a href#poems>诗词/a>/li> li>a href#poets>诗人/a>/li> li>a href#dynasties>朝代/a>/li> /ul> /div> div classfooter-section> h4>诗词分类/h4> ul> li>a href#>爱情诗/a>/li> li>a href#>山水诗/a>/li> li>a href#>边塞诗/a>/li> li>a href#>田园诗/a>/li> /ul> /div> /div> div classfooter-bottom> p>© 2024 古诗词雅集. 传承文化,品味经典。/p> /div> /div> /footer> script>// 古诗词数据const poemsData { title: 静夜思, poet: 李白, dynasty: tang, category: 思乡, content: 床前明月光,疑是地上霜。, 举头望明月,低头思故乡。, keywords: 月光, 思乡, 明月 }, { title: 春晓, poet: 孟浩然, dynasty: tang, category: nature, content: 春眠不觉晓,处处闻啼鸟。, 夜来风雨声,花落知多少。, keywords: 春天, 鸟鸣, 花落 }, { title: 登鹳雀楼, poet: 王之涣, dynasty: tang, category: nature, content: 白日依山尽,黄河入海流。, 欲穷千里目,更上一层楼。, keywords: 黄河, 山, 楼 }, { title: 相思, poet: 王维, dynasty: tang, category: love, content: 红豆生南国,春来发几枝。, 愿君多采撷,此物最相思。, keywords: 红豆, 相思, 南国 }, { title: 水调歌头, poet: 苏轼, dynasty: song, category: 思乡, content: 明月几时有?把酒问青天。, 不知天上宫阙,今夕是何年。, keywords: 明月, 青天, 宫阙 }, { title: 江雪, poet: 柳宗元, dynasty: tang, category: nature, content: 千山鸟飞绝,万径人踪灭。, 孤舟蓑笠翁,独钓寒江雪。, keywords: 雪, 孤舟, 钓鱼 }, { title: 如梦令, poet: 李清照, dynasty: song, category: 回忆, content: 常记溪亭日暮,沉醉不知归路。, 兴尽晚回舟,误入藕花深处。, keywords: 溪亭, 藕花, 回舟 }, { title: 望庐山瀑布, poet: 李白, dynasty: tang, category: nature, content: 日照香炉生紫烟,遥看瀑布挂前川。, 飞流直下三千尺,疑是银河落九天。, keywords: 瀑布, 庐山, 银河 }, { title: 赋得古原草送别, poet: 白居易, dynasty: tang, category: 送别, content: 离离原上草,一岁一枯荣。, 野火烧不尽,春风吹又生。, keywords: 原草, 野火, 春风 }, { title: 咏鹅, poet: 骆宾王, dynasty: tang, category: 咏物, content: 鹅,鹅,鹅,曲项向天歌。, 白毛浮绿水,红掌拨清波。, keywords: 鹅, 绿水, 红掌 };// DOM 元素const hamburger document.querySelector(.hamburger);const navMenu document.querySelector(.nav-menu);const navLinks document.querySelectorAll(.nav-link);const searchInput document.getElementById(searchInput);const searchBtn document.getElementById(searchBtn);const searchResults document.getElementById(searchResults);const filterBtns document.querySelectorAll(.filter-btn);// 初始化document.addEventListener(DOMContentLoaded, function() { initializeNavigation(); initializeSearch(); initializeScrollEffects(); initializeAnimations();});// 导航功能function initializeNavigation() { // 汉堡菜单切换 hamburger.addEventListener(click, function() { navMenu.classList.toggle(active); hamburger.classList.toggle(active); }); // 平滑滚动 navLinks.forEach(link > { link.addEventListener(click, function(e) { e.preventDefault(); const targetId this.getAttribute(href); const targetSection document.querySelector(targetId); if (targetSection) { const offsetTop targetSection.offsetTop - 80; window.scrollTo({ top: offsetTop, behavior: smooth }); } // 更新活动链接 navLinks.forEach(l > l.classList.remove(active)); this.classList.add(active); // 关闭移动端菜单 navMenu.classList.remove(active); hamburger.classList.remove(active); }); }); // 滚动时更新导航状态 window.addEventListener(scroll, updateActiveNavLink);}// 更新活动导航链接function updateActiveNavLink() { const sections document.querySelectorAll(sectionid); const scrollPos window.scrollY + 100; sections.forEach(section > { const sectionTop section.offsetTop; const sectionHeight section.offsetHeight; const sectionId section.getAttribute(id); if (scrollPos > sectionTop && scrollPos sectionTop + sectionHeight) { navLinks.forEach(link > { link.classList.remove(active); if (link.getAttribute(href) `#${sectionId}`) { link.classList.add(active); } }); } });}// 搜索功能function initializeSearch() { // 搜索按钮点击事件 searchBtn.addEventListener(click, performSearch); // 回车键搜索 searchInput.addEventListener(keypress, function(e) { if (e.key Enter) { performSearch(); } }); // 实时搜索 searchInput.addEventListener(input, function() { if (this.value.trim().length > 0) { performSearch(); } else { clearSearchResults(); } }); // 筛选按钮 filterBtns.forEach(btn > { btn.addEventListener(click, function() { filterBtns.forEach(b > b.classList.remove(active)); this.classList.add(active); const filter this.getAttribute(data-filter); filterPoems(filter); }); });}// 执行搜索function performSearch() { const query searchInput.value.trim().toLowerCase(); if (!query) { clearSearchResults(); return; } const results poemsData.filter(poem > { return poem.title.toLowerCase().includes(query) || poem.poet.toLowerCase().includes(query) || poem.content.some(line > line.includes(query)) || poem.keywords.some(keyword > keyword.includes(query)); }); displaySearchResults(results, query);}// 筛选诗词function filterPoems(filter) { let results ; if (filter all) { results poemsData; } else { results poemsData.filter(poem > { return poem.dynasty filter || poem.category filter; }); } displaySearchResults(results, `筛选: ${getFilterName(filter)}`);}// 获取筛选器名称function getFilterName(filter) { const filterNames { all: 全部, tang: 唐代, song: 宋代, love: 爱情, nature: 山水 }; return filterNamesfilter || filter;}// 显示搜索结果function displaySearchResults(results, query) { if (results.length 0) { searchResults.innerHTML ` div classno-results> h3>未找到相关诗词/h3> p>尝试使用其他关键词搜索/p> /div> `; return; } const resultsHTML ` div classsearch-header> h3>搜索结果 (${results.length}首)/h3> p>关键词: ${query}/p> /div> div classresults-grid> ${results.map(poem > ` div classresult-card> div classresult-header> h4>${poem.title}/h4> span classresult-poet>${poem.poet}/span> /div> div classresult-content> ${poem.content.map(line > `p>${highlightText(line, query)}/p>`).join()} /div> div classresult-tags> span classdynasty-tag>${getDynastyName(poem.dynasty)}/span> span classcategory-tag>${poem.category}/span> /div> /div> `).join()} /div> `; searchResults.innerHTML resultsHTML;}// 高亮搜索文本function highlightText(text, query) { if (!query || query 筛选: 全部 || query.startsWith(筛选:)) { return text; } const regex new RegExp(`(${query})`, gi); return text.replace(regex, mark>$1/mark>);}// 获取朝代名称function getDynastyName(dynasty) { const dynastyNames { tang: 唐代, song: 宋代, yuan: 元代, ming: 明代, qing: 清代 }; return dynastyNamesdynasty || dynasty;}// 清空搜索结果function clearSearchResults() { searchResults.innerHTML ` div classsearch-placeholder> h3>开始搜索/h3> p>输入诗词名称、诗人姓名或关键词/p> /div> `;}// 滚动效果function initializeScrollEffects() { // 导航栏滚动效果 window.addEventListener(scroll, function() { const header document.querySelector(.header); if (window.scrollY > 100) { header.style.background rgba(255, 255, 255, 0.98); header.style.boxShadow 0 2px 30px rgba(0, 0, 0, 0.15); } else { header.style.background rgba(255, 255, 255, 0.95); header.style.boxShadow 0 2px 20px rgba(0, 0, 0, 0.1); } }); // 元素进入视口动画 const observerOptions { threshold: 0.1, rootMargin: 0px 0px -50px 0px }; const observer new IntersectionObserver(function(entries) { entries.forEach(entry > { if (entry.isIntersecting) { entry.target.style.opacity 1; entry.target.style.transform translateY(0); } }); }, observerOptions); // 观察需要动画的元素 const animatedElements document.querySelectorAll(.poem-card, .poet-card, .dynasty-item); animatedElements.forEach(el > { el.style.opacity 0; el.style.transform translateY(30px); el.style.transition opacity 0.6s ease, transform 0.6s ease; observer.observe(el); });}// 初始化动画function initializeAnimations() { // 为诗词卡片添加悬停效果 const poemCards document.querySelectorAll(.poem-card); poemCards.forEach(card > { card.addEventListener(mouseenter, function() { this.style.transform translateY(-10px) scale(1.02); }); card.addEventListener(mouseleave, function() { this.style.transform translateY(0) scale(1); }); }); // 为诗人卡片添加点击效果 const poetCards document.querySelectorAll(.poet-card); poetCards.forEach(card > { card.addEventListener(click, function() { const poetName this.querySelector(h3).textContent; showPoetInfo(poetName); }); });}// 显示诗人信息function showPoetInfo(poetName) { const poetInfo { 李白: { description: 唐代伟大的浪漫主义诗人,被后人誉为诗仙。其诗想象丰富,语言流转自然,音律和谐多变。, works: 静夜思, 望庐山瀑布, 将进酒, 蜀道难, style: 浪漫主义,豪放飘逸 }, 杜甫: { description: 唐代现实主义诗人,被誉为诗圣。其诗深刻反映社会现实,忧国忧民,人格高尚。, works: 春望, 茅屋为秋风所破歌, 登高, 春夜喜雨, style: 现实主义,沉郁顿挫 }, 苏轼: { description: 宋代文学家,豪放派词人代表。文学造诣极高,诗词文赋无所不精。, works: 水调歌头, 念奴娇·赤壁怀古, 江城子, 定风波, style: 豪放派,清新豪健 }, 李清照: { description: 宋代女词人,婉约派代表。词风清新,感情真挚,艺术造诣极高。, works: 如梦令, 声声慢, 一剪梅, 醉花阴, style: 婉约派,清丽典雅 } }; const info poetInfopoetName; if (info) { showModal(` div classpoet-modal> h2>${poetName}/h2> p classpoet-description>${info.description}/p> div classpoet-details> div classdetail-section> h4>代表作品/h4> ul> ${info.works.map(work > `li>${work}/li>`).join()} /ul> /div> div classdetail-section> h4>创作风格/h4> p>${info.style}/p> /div> /div> /div> `); }}// 显示模态框function showModal(content) { const modal document.createElement(div); modal.className modal-overlay; modal.innerHTML ` div classmodal-content> button classmodal-close>×/button> ${content} /div> `; document.body.appendChild(modal); // 添加样式 modal.style.cssText ` position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index: 10000; opacity: 0; transition: opacity 0.3s ease; `; const modalContent modal.querySelector(.modal-content); modalContent.style.cssText ` background: white; padding: 2rem; border-radius: 15px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; position: relative; transform: scale(0.8); transition: transform 0.3s ease; `; const closeBtn modal.querySelector(.modal-close); closeBtn.style.cssText ` position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 2rem; cursor: pointer; color: #666; `; // 显示动画 setTimeout(() > { modal.style.opacity 1; modalContent.style.transform scale(1); }, 10); // 关闭事件 const closeModal () > { modal.style.opacity 0; modalContent.style.transform scale(0.8); setTimeout(() > { document.body.removeChild(modal); }, 300); }; closeBtn.addEventListener(click, closeModal); modal.addEventListener(click, function(e) { if (e.target modal) { closeModal(); } });}// 初始化搜索占位符clearSearchResults(); /script>/body>/html>
View on OTX
|
View on ThreatMiner
Please enable JavaScript to view the
comments powered by Disqus.
Data with thanks to
AlienVault OTX
,
VirusTotal
,
Malwr
and
others
. [
Sitemap
]