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|
+
<title>红石API - 公益接口平台</title>
|
7 |
+
<link rel="icon" href="data:image/webp;base64,UklGRsIAAABXRUJQVlA4TLUAAAAvn8AnED+gppEU6F5a/EulwobSAEgYGomK6wez/z+mmbZt3G7jD3jP/AcAXizD83oazuwFWEWyGikWsICFWHgWsIAF/NdQe/5lj4ro/wSMP7Cx8YEQTBaDj4Fg0diIzsUvWDQWk0bRueQFa6+xKAZF50IXTBqbpGhMisVJ50JXTDbGYlIbg+JC5xSLxmJSLDbt5ELXOsViUgxq46RznLyetb5xsmknfeO47Hr21Q8dt17PvhABAA==">
|
8 |
+
<style>
|
9 |
+
:root {
|
10 |
+
--neon-blue: #00f3ff;
|
11 |
+
--neon-pink: #ff00ff;
|
12 |
+
--cyber-purple: #6c00ff;
|
13 |
+
--dark-bg: #0a0a12;
|
14 |
+
--grid-color: rgba(0, 243, 255, 0.1);
|
15 |
+
}
|
16 |
+
|
17 |
+
* {
|
18 |
+
margin: 0;
|
19 |
+
padding: 0;
|
20 |
+
box-sizing: border-box;
|
21 |
+
font-family: 'Segoe UI', system-ui;
|
22 |
+
}
|
23 |
+
|
24 |
+
body {
|
25 |
+
background: var(--dark-bg);
|
26 |
+
color: white;
|
27 |
+
position: relative;
|
28 |
+
overflow-x: hidden;
|
29 |
+
scroll-behavior: smooth;
|
30 |
+
}
|
31 |
+
|
32 |
+
/* 赛博朋克背景 */
|
33 |
+
.cyber-bg {
|
34 |
+
position: fixed;
|
35 |
+
top: 0;
|
36 |
+
left: 0;
|
37 |
+
width: 100%;
|
38 |
+
height: 100%;
|
39 |
+
z-index: -2;
|
40 |
+
background:
|
41 |
+
linear-gradient(45deg, var(--cyber-purple) 0%, transparent 50%),
|
42 |
+
linear-gradient(-45deg, var(--neon-pink) 0%, transparent 50%),
|
43 |
+
var(--dark-bg);
|
44 |
+
animation: bgMove 20s linear infinite;
|
45 |
+
background-size: 200% 200%;
|
46 |
+
}
|
47 |
+
|
48 |
+
.cyber-grid {
|
49 |
+
position: fixed;
|
50 |
+
top: 0;
|
51 |
+
left: 0;
|
52 |
+
width: 100%;
|
53 |
+
height: 100%;
|
54 |
+
background-image:
|
55 |
+
linear-gradient(var(--grid-color) 1px, transparent 1px),
|
56 |
+
linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
|
57 |
+
background-size: 30px 30px;
|
58 |
+
z-index: -1;
|
59 |
+
opacity: 0.3;
|
60 |
+
}
|
61 |
+
|
62 |
+
/* 英雄区域 */
|
63 |
+
.hero {
|
64 |
+
height: 100vh;
|
65 |
+
display: flex;
|
66 |
+
align-items: center;
|
67 |
+
justify-content: center;
|
68 |
+
flex-direction: column;
|
69 |
+
text-align: center;
|
70 |
+
padding: 20px;
|
71 |
+
position: relative;
|
72 |
+
}
|
73 |
+
|
74 |
+
.logo {
|
75 |
+
width: 150px;
|
76 |
+
height: 150px;
|
77 |
+
margin-bottom: 30px;
|
78 |
+
animation: float 3s ease-in-out infinite;
|
79 |
+
filter: drop-shadow(0 0 15px var(--neon-blue));
|
80 |
+
}
|
81 |
+
|
82 |
+
.nav-buttons {
|
83 |
+
margin: 40px 0;
|
84 |
+
display: flex;
|
85 |
+
gap: 25px;
|
86 |
+
flex-wrap: wrap;
|
87 |
+
justify-content: center;
|
88 |
+
}
|
89 |
+
|
90 |
+
.btn {
|
91 |
+
padding: 15px 40px;
|
92 |
+
border: 2px solid var(--neon-blue);
|
93 |
+
border-radius: 30px;
|
94 |
+
color: var(--neon-blue);
|
95 |
+
text-decoration: none;
|
96 |
+
transition: all 0.3s;
|
97 |
+
position: relative;
|
98 |
+
overflow: hidden;
|
99 |
+
background: rgba(0, 0, 0, 0.3);
|
100 |
+
backdrop-filter: blur(5px);
|
101 |
+
}
|
102 |
+
|
103 |
+
.btn:hover {
|
104 |
+
background: var(--neon-blue);
|
105 |
+
color: var(--dark-bg);
|
106 |
+
box-shadow: 0 0 30px var(--neon-blue);
|
107 |
+
}
|
108 |
+
|
109 |
+
.btn::before {
|
110 |
+
content: '';
|
111 |
+
position: absolute;
|
112 |
+
top: -50%;
|
113 |
+
left: -50%;
|
114 |
+
width: 200%;
|
115 |
+
height: 200%;
|
116 |
+
background: linear-gradient(45deg,
|
117 |
+
transparent,
|
118 |
+
var(--neon-blue),
|
119 |
+
transparent);
|
120 |
+
animation: lightFlow 3s infinite linear;
|
121 |
+
opacity: 0.3;
|
122 |
+
}
|
123 |
+
|
124 |
+
/* 独立查看更多按钮样式 */
|
125 |
+
.btn-more {
|
126 |
+
padding: 12px 35px;
|
127 |
+
font-size: 1.1em;
|
128 |
+
border: 2px solid var(--neon-pink);
|
129 |
+
color: var(--neon-pink);
|
130 |
+
background: rgba(255, 0, 255, 0.1);
|
131 |
+
border-radius: 30px;
|
132 |
+
text-decoration: none;
|
133 |
+
transition: all 0.3s;
|
134 |
+
display: inline-flex;
|
135 |
+
align-items: center;
|
136 |
+
position: relative;
|
137 |
+
}
|
138 |
+
|
139 |
+
.btn-more:hover {
|
140 |
+
background: var(--neon-pink);
|
141 |
+
color: var(--dark-bg);
|
142 |
+
box-shadow: 0 0 25px var(--neon-pink);
|
143 |
+
transform: translateY(-3px);
|
144 |
+
}
|
145 |
+
|
146 |
+
.daily-quote {
|
147 |
+
font-size: 1.5em;
|
148 |
+
margin: 30px 0;
|
149 |
+
min-height: 60px;
|
150 |
+
text-shadow: 0 0 10px var(--neon-pink));
|
151 |
+
}
|
152 |
+
|
153 |
+
/* 内容区块 */
|
154 |
+
.section {
|
155 |
+
padding: 100px 20px;
|
156 |
+
position: relative;
|
157 |
+
backdrop-filter: blur(5px);
|
158 |
+
}
|
159 |
+
|
160 |
+
.section-title {
|
161 |
+
text-align: center;
|
162 |
+
margin-bottom: 60px;
|
163 |
+
font-size: 2.5em;
|
164 |
+
text-shadow: 0 0 15px var(--neon-blue));
|
165 |
+
}
|
166 |
+
|
167 |
+
/* 网格布局 */
|
168 |
+
.grid {
|
169 |
+
display: grid;
|
170 |
+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
171 |
+
gap: 30px;
|
172 |
+
max-width: 1200px;
|
173 |
+
margin: 0 auto;
|
174 |
+
}
|
175 |
+
|
176 |
+
.card {
|
177 |
+
background: rgba(10, 10, 18, 0.7);
|
178 |
+
border: 1px solid var(--neon-blue);
|
179 |
+
border-radius: 15px;
|
180 |
+
padding: 25px;
|
181 |
+
transition: all 0.3s;
|
182 |
+
backdrop-filter: blur(10px);
|
183 |
+
cursor: pointer;
|
184 |
+
position: relative;
|
185 |
+
}
|
186 |
+
|
187 |
+
.card:hover {
|
188 |
+
transform: translateY(-10px);
|
189 |
+
box-shadow: 0 0 30px var(--neon-blue);
|
190 |
+
}
|
191 |
+
|
192 |
+
.card::after {
|
193 |
+
content: '↗';
|
194 |
+
position: absolute;
|
195 |
+
top: 15px;
|
196 |
+
right: 15px;
|
197 |
+
color: var(--neon-blue);
|
198 |
+
opacity: 0;
|
199 |
+
transition: opacity 0.3s;
|
200 |
+
}
|
201 |
+
|
202 |
+
.card:hover::after {
|
203 |
+
opacity: 1;
|
204 |
+
}
|
205 |
+
|
206 |
+
.vendor-logo {
|
207 |
+
width: 60px;
|
208 |
+
height: 60px;
|
209 |
+
margin-right: 20px;
|
210 |
+
filter: drop-shadow(0 0 5px var(--neon-blue));
|
211 |
+
}
|
212 |
+
|
213 |
+
/* 查看更多按钮容器 */
|
214 |
+
.more-button {
|
215 |
+
display: flex;
|
216 |
+
justify-content: center;
|
217 |
+
margin-top: 40px;
|
218 |
+
}
|
219 |
+
|
220 |
+
/* 常见问题 */
|
221 |
+
.faq-item {
|
222 |
+
background: rgba(108, 0, 255, 0.1);
|
223 |
+
border: 1px solid var(--neon-pink);
|
224 |
+
margin: 20px 0;
|
225 |
+
padding: 25px;
|
226 |
+
border-radius: 10px;
|
227 |
+
}
|
228 |
+
|
229 |
+
.faq-question {
|
230 |
+
cursor: pointer;
|
231 |
+
display: flex;
|
232 |
+
justify-content: space-between;
|
233 |
+
align-items: center;
|
234 |
+
}
|
235 |
+
|
236 |
+
.faq-answer {
|
237 |
+
max-height: 0;
|
238 |
+
overflow: hidden;
|
239 |
+
transition: max-height 0.3s ease-out;
|
240 |
+
}
|
241 |
+
|
242 |
+
.faq-item.active .faq-answer {
|
243 |
+
max-height: 500px;
|
244 |
+
}
|
245 |
+
|
246 |
+
.arrow {
|
247 |
+
transition: transform 0.3s;
|
248 |
+
}
|
249 |
+
|
250 |
+
.faq-item.active .arrow {
|
251 |
+
transform: rotate(180deg);
|
252 |
+
}
|
253 |
+
|
254 |
+
/* 动画 */
|
255 |
+
@keyframes float {
|
256 |
+
0%, 100% { transform: translateY(0); }
|
257 |
+
50% { transform: translateY(-20px); }
|
258 |
+
}
|
259 |
+
|
260 |
+
@keyframes bgMove {
|
261 |
+
0% { background-position: 0% 0%; }
|
262 |
+
50% { background-position: 100% 100%; }
|
263 |
+
100% { background-position: 0% 0%; }
|
264 |
+
}
|
265 |
+
|
266 |
+
@keyframes lightFlow {
|
267 |
+
0% { transform: rotate(0deg) translate(-50%, -50%); }
|
268 |
+
100% { transform: rotate(360deg) translate(-50%, -50%); }
|
269 |
+
}
|
270 |
+
|
271 |
+
@media (max-width: 768px) {
|
272 |
+
.grid {
|
273 |
+
grid-template-columns: 1fr;
|
274 |
+
}
|
275 |
+
.section-title {
|
276 |
+
font-size: 2em;
|
277 |
+
}
|
278 |
+
.btn {
|
279 |
+
padding: 12px 30px;
|
280 |
+
}
|
281 |
+
}
|
282 |
+
</style>
|
283 |
+
</head>
|
284 |
+
<body>
|
285 |
+
<div class="cyber-bg"></div>
|
286 |
+
<div class="cyber-grid"></div>
|
287 |
+
|
288 |
+
<section class="hero">
|
289 |
+
<img src="data:image/webp;base64,UklGRsIAAABXRUJQVlA4TLUAAAAvn8AnED+gppEU6F5a/EulwobSAEgYGomK6wez/z+mmbZt3G7jD3jP/AcAXizD83oazuwFWEWyGikWsICFWHgWsIAF/NdQe/5lj4ro/wSMP7Cx8YEQTBaDj4Fg0diIzsUvWDQWk0bRueQFa6+xKAZF50IXTBqbpGhMisVJ50JXTDbGYlIbg+JC5xSLxmJSLDbt5ELXOsViUgxq46RznLyetb5xsmknfeO47Hr21Q8dt17PvhABAA=="
|
290 |
+
alt="红石API"
|
291 |
+
class="logo">
|
292 |
+
<h1 class="section-title">红石API</h1>
|
293 |
+
<p style="font-size: 1.2em; margin-bottom: 20px;">开放 · 安全 · 高效的智能接口平台</p>
|
294 |
+
|
295 |
+
<div class="nav-buttons">
|
296 |
+
<a href="https://api.hongshi.dpdns.org/about" class="btn">关于我们</a>
|
297 |
+
<a href="https://dash.hongshi.dpdns.org/status/api" class="btn">服务监控</a>
|
298 |
+
<a href="https://api.hongshi.dpdns.org/pricing" class="btn">定价方案</a>
|
299 |
+
</div>
|
300 |
+
|
301 |
+
<div class="daily-quote" id="dailyQuote"></div>
|
302 |
+
</section>
|
303 |
+
|
304 |
+
<!-- 支持模型 -->
|
305 |
+
<section class="section">
|
306 |
+
<h2 class="section-title">️ 支持AI大模型</h2>
|
307 |
+
<div class="grid">
|
308 |
+
<div class="card" data-link="https://deepseek.com">
|
309 |
+
<div style="display: flex; align-items: center;">
|
310 |
+
<img src="https://www.deepseek.com/favicon.ico" class="vendor-logo" alt="DeepSeek">
|
311 |
+
<h3>DeepSeek</h3>
|
312 |
+
</div>
|
313 |
+
<p style="margin-top: 15px;">DeepSeek-R1、DeepSeek-v3以及对应联网模型</p>
|
314 |
+
</div>
|
315 |
+
<div class="card" data-link="https://openai.com">
|
316 |
+
<div style="display: flex; align-items: center;">
|
317 |
+
<img src="https://freepnglogo.com/images/all_img/1702059841openai-icon-png.png" class="vendor-logo" alt="OpenAI">
|
318 |
+
<h3>OpenAI</h3>
|
319 |
+
</div>
|
320 |
+
<p style="margin-top: 15px;">GPT-4.1-mini、Dall-E-2、Whisper-1等模型</p>
|
321 |
+
</div>
|
322 |
+
<div class="card" data-link="https://chat.qwen.ai/">
|
323 |
+
<div style="display: flex; align-items: center;">
|
324 |
+
<img src="https://assets.alicdn.com/g/qwenweb/qwen-webui-fe/0.0.54/static/favicon.png" class="vendor-logo" alt="Qwen">
|
325 |
+
<h3>通义千问</h3>
|
326 |
+
</div>
|
327 |
+
<p style="margin-top: 15px;">Qwen2、Qwen2.5、Qwen3、QwQ以及对应的联网模型</p>
|
328 |
+
</div>
|
329 |
+
<div class="card" data-link="https://gemini.google.com/">
|
330 |
+
<div style="display: flex; align-items: center;">
|
331 |
+
<img src="https://registry.npmmirror.com/@lobehub/icons-static-png/1.45.0/files/dark/gemini-color.png" class="vendor-logo" alt="Qwen">
|
332 |
+
<h3>Gemini</h3>
|
333 |
+
</div>
|
334 |
+
<p style="margin-top: 15px;">Gemini-1.5以及Gemini-2.0系列模型</p>
|
335 |
+
</div>
|
336 |
+
<!-- 添加更多模型卡片 -->
|
337 |
+
</div>
|
338 |
+
<div class="more-button">
|
339 |
+
<a href="https://api.hongshi.dpdns.org/pricing" class="btn-more">
|
340 |
+
<span style="margin-right: 8px;">🗃️</span>查看完整模型列表
|
341 |
+
</a>
|
342 |
+
</div>
|
343 |
+
</section>
|
344 |
+
|
345 |
+
<!-- 应用接入 -->
|
346 |
+
<section class="section" style="background: rgba(255, 0, 255, 0.05);">
|
347 |
+
<h2 class="section-title">️ 应用接入</h2>
|
348 |
+
<div class="grid">
|
349 |
+
<div class="card" data-link="https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web">
|
350 |
+
<div style="display: flex; align-items: center;">
|
351 |
+
<img src="https://voapi.yopanai.com/index/platforms/voapi-p-1.png" class="vendor-logo" alt="NextWeb">
|
352 |
+
<h3>ChatGPT-Next-Web</h3>
|
353 |
+
</div>
|
354 |
+
<p style="margin-top: 15px;">开箱即用的Web聊天应用</p>
|
355 |
+
</div>
|
356 |
+
<div class="card" data-link="https://github.com/lobehub/lobe-chat">
|
357 |
+
<div style="display: flex; align-items: center;">
|
358 |
+
<img src="https://voapi.yopanai.com/index/platforms/voapi-p-2.png" class="vendor-logo" alt="LobeChat">
|
359 |
+
<h3>LobeCht</h3>
|
360 |
+
</div>
|
361 |
+
<p style="margin-top: 15px;">一个快速、优雅、高效的对话UI</p>
|
362 |
+
</div>
|
363 |
+
<div class="card" data-link="https://github.com/ChatAnyTeam/ChatAny">
|
364 |
+
<div style="display: flex; align-items: center;">
|
365 |
+
<img src="https://voapi.yopanai.com/index/platforms/voapi-p-3.png" class="vendor-logo" alt="ChatAny">
|
366 |
+
<h3>ChatAny</h3>
|
367 |
+
</div>
|
368 |
+
<p style="margin-top: 15px;">一键拥有你自己的 ChatGPT+众多AI 的聚合网页服务</p>
|
369 |
+
</div>
|
370 |
+
<!-- 添加更多应用卡片 -->
|
371 |
+
</div>
|
372 |
+
<br>
|
373 |
+
<h4 align="center">以及所有支持OpenAI格式调用的UI</h4>
|
374 |
+
</section>
|
375 |
+
|
376 |
+
<!-- 常见问题 -->
|
377 |
+
<section class="section">
|
378 |
+
<h2 class="section-title">️ 常见问题</h2>
|
379 |
+
<div style="max-width: 800px; margin: 0 auto;">
|
380 |
+
<div class="faq-item">
|
381 |
+
<div class="faq-question" onclick="toggleFAQ(this)">
|
382 |
+
<h3>Q1: 收不到验证邮件怎么办?</h3>
|
383 |
+
<div class="arrow">▼</div>
|
384 |
+
</div>
|
385 |
+
<div class="faq-answer">
|
386 |
+
<p>A1: 请检查垃圾邮件箱,确保完成CF验证流程,目前支持QQ/Outlook邮箱。</p>
|
387 |
+
</div>
|
388 |
+
</div>
|
389 |
+
<div class="faq-item">
|
390 |
+
<div class="faq-question" onclick="toggleFAQ(this)">
|
391 |
+
<h3>Q2: 如何获取技术支持?</h3>
|
392 |
+
<div class="arrow">▼</div>
|
393 |
+
</div>
|
394 |
+
<div class="faq-answer">
|
395 |
+
<p>A2: 邮件联系 <a href="mailto:[email protected]">[email protected]</a> 或加入官网QQ群。</p>
|
396 |
+
</div>
|
397 |
+
</div>
|
398 |
+
</div>
|
399 |
+
</section>
|
400 |
+
|
401 |
+
<script>
|
402 |
+
// 每日一言
|
403 |
+
const quotes = [
|
404 |
+
"代码如诗,连接未来。",
|
405 |
+
"开放共享,智启新程。",
|
406 |
+
"任何足够先进的技术都和魔法无异",
|
407 |
+
"我们正处于一场技术变革的前夜,人工智能是这场变革的核心。",
|
408 |
+
"人工智能将是下一个工业革命的引擎。"
|
409 |
+
];
|
410 |
+
|
411 |
+
function typeWriter(text, element) {
|
412 |
+
let index = 0;
|
413 |
+
element.innerHTML = '';
|
414 |
+
function type() {
|
415 |
+
if (index < text.length) {
|
416 |
+
element.innerHTML += text.charAt(index);
|
417 |
+
index++;
|
418 |
+
setTimeout(type, 100);
|
419 |
+
} else {
|
420 |
+
element.innerHTML += '<span style="animation: blink 1s infinite">|</span>';
|
421 |
+
}
|
422 |
+
}
|
423 |
+
type();
|
424 |
+
}
|
425 |
+
|
426 |
+
// FAQ切换
|
427 |
+
function toggleFAQ(element) {
|
428 |
+
const faqItem = element.closest('.faq-item');
|
429 |
+
faqItem.classList.toggle('active');
|
430 |
+
}
|
431 |
+
|
432 |
+
// 卡片跳转
|
433 |
+
document.querySelectorAll('.card').forEach(card => {
|
434 |
+
card.addEventListener('click', function(e) {
|
435 |
+
if (!e.target.closest('a')) {
|
436 |
+
const url = this.dataset.link;
|
437 |
+
if (url) window.open(url, '_blank');
|
438 |
+
}
|
439 |
+
});
|
440 |
+
});
|
441 |
+
|
442 |
+
// 初始化
|
443 |
+
window.addEventListener('load', () => {
|
444 |
+
const quote = quotes[Math.floor(Math.random() * quotes.length)];
|
445 |
+
typeWriter(quote, document.getElementById('dailyQuote'));
|
446 |
+
|
447 |
+
// 滚动动画
|
448 |
+
const observer = new IntersectionObserver((entries) => {
|
449 |
+
entries.forEach(entry => {
|
450 |
+
if (entry.isIntersecting) {
|
451 |
+
entry.target.style.opacity = 1;
|
452 |
+
entry.target.style.transform = 'translateY(0)';
|
453 |
+
}
|
454 |
+
});
|
455 |
+
});
|
456 |
+
|
457 |
+
document.querySelectorAll('.card, .faq-item').forEach(el => {
|
458 |
+
el.style.opacity = 0;
|
459 |
+
el.style.transform = 'translateY(30px)';
|
460 |
+
el.style.transition = 'all 0.6s cubic-bezier(0.4, 0, 0.2, 1)';
|
461 |
+
observer.observe(el);
|
462 |
+
});
|
463 |
+
});
|
464 |
+
</script>
|
465 |
+
</body>
|
466 |
+
</html>·
|