<!-- 科技風格博客網站完整源碼 -->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>量子前沿 | 科技博客</title>
<style>
:root {
--primary: #0f172a;
--secondary: #1e293b;
--accent: #6366f1;
--text: #e2e8f0;
--highlight: #38bdf8;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #0f172a, #1e293b);
color: var(--text);
line-height: 1.6;
min-height: 100vh;
padding-bottom: 2rem;
}
header {
background: rgba(15, 23, 42, 0.8);
backdrop-filter: blur(10px);
padding: 1rem 5%;
position: sticky;
top: 0;
z-index: 100;
border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}
.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 1.8rem;
font-weight: 700;
background: linear-gradient(90deg, var(--accent), var(--highlight));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
letter-spacing: 1px;
}
.main-nav ul {
display: flex;
list-style: none;
gap: 2rem;
}
.main-nav a {
color: var(--text);
text-decoration: none;
font-weight: 500;
transition: color 0.3s;
position: relative;
}
.main-nav a::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
&