## 设计变更 - 全新暗色主题配色(深灰蓝 + 霓虹青强调色) - 引入 Rajdhani + Noto Sans SC 字体组合 - 悬浮球添加脉冲呼吸动画和发光效果 - 面板添加入场动画和玻璃拟态效果 - 列表项添加交错入场动画 - 按钮添加发光 hover 和按下反馈 - 自定义滚动条样式 - 优化状态栏颜色区分(加载/成功/错误) ## 文件变更 - content.js: 完全重写 CSS 样式系统 - popup.html: 重新设计弹窗界面 - manifest.json: 版本升级到 1.3 ## 版本管理 - master 分支保留原始版本 - ui-redesign 分支为当前工作版本 - 可通过 `git checkout master` 随时回滚
134 lines
3.6 KiB
HTML
134 lines
3.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<link href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
|
|
<style>
|
|
:root {
|
|
--m-bg-deep: #0a0e14;
|
|
--m-bg-primary: #0f1419;
|
|
--m-bg-secondary: #1a1f2e;
|
|
--m-bg-card: rgba(26, 31, 46, 0.92);
|
|
--m-accent: #00d4aa;
|
|
--m-accent-glow: rgba(0, 212, 170, 0.4);
|
|
--m-text-primary: #f0f4f8;
|
|
--m-text-secondary: #8892a4;
|
|
--m-text-muted: #5c6578;
|
|
--m-border: rgba(255, 255, 255, 0.06);
|
|
--m-border-accent: rgba(0, 212, 170, 0.3);
|
|
--m-font-display: "Rajdhani", "Microsoft YaHei", sans-serif;
|
|
--m-font-body: "Noto Sans SC", "Microsoft YaHei", sans-serif;
|
|
--m-radius-md: 12px;
|
|
}
|
|
|
|
body {
|
|
width: 260px;
|
|
padding: 20px;
|
|
margin: 0;
|
|
background: var(--m-bg-primary);
|
|
font-family: var(--m-font-body);
|
|
color: var(--m-text-primary);
|
|
}
|
|
|
|
.popup-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.popup-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: linear-gradient(135deg, rgba(0, 212, 170, 0.2) 0%, rgba(0, 212, 170, 0.1) 100%);
|
|
border: 1px solid var(--m-border-accent);
|
|
border-radius: 10px;
|
|
color: var(--m-accent);
|
|
}
|
|
|
|
.popup-icon svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.popup-title {
|
|
font-family: var(--m-font-display);
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
letter-spacing: 1px;
|
|
background: linear-gradient(135deg, var(--m-accent) 0%, #00f5c4 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.popup-desc {
|
|
font-size: 12px;
|
|
color: var(--m-text-secondary);
|
|
margin: 0 0 16px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
button {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
background: linear-gradient(135deg, var(--m-accent) 0%, #00f5c4 100%);
|
|
color: var(--m-bg-deep);
|
|
border: none;
|
|
border-radius: var(--m-radius-md);
|
|
cursor: pointer;
|
|
font-family: var(--m-font-display);
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.5px;
|
|
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
button:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
|
|
}
|
|
|
|
button:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.popup-footer {
|
|
margin-top: 16px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--m-border);
|
|
text-align: center;
|
|
}
|
|
|
|
.popup-footer-text {
|
|
font-size: 10px;
|
|
color: var(--m-text-muted);
|
|
letter-spacing: 0.5px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="popup-header">
|
|
<div class="popup-icon">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="Magnet">
|
|
<path d="M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83"/>
|
|
</svg>
|
|
</div>
|
|
<div class="popup-title">MAGNET</div>
|
|
</div>
|
|
|
|
<p class="popup-desc">提取当前页面的磁力链接并复制到剪贴板</p>
|
|
|
|
<button id="copyBtn" type="button">复制当前页磁力链接</button>
|
|
|
|
<div class="popup-footer">
|
|
<span class="popup-footer-text">仅支持涩花塘论坛页面</span>
|
|
</div>
|
|
|
|
<script src="popup.js"></script>
|
|
</body>
|
|
</html>
|