refactor(static): 首页统一 1024px 版心,特性网格改为 2×2 等宽布局

- 新增 .wrap 统一版心,头部胶囊、特性、关于、CTA、页脚全部对齐同一内容栏
- 特性卡片由 Bento 跨列网格改为 2×2 等宽,取消旋转装饰
- 关于面板改为居中排版,数据行移至底部横排
- 章节间距统一由 .section 控制,移动端断点适配同步收敛
This commit is contained in:
qing committed 2026-08-07 06:04:15 +00:00
1 parent f3ba13a6b9
commit c45e2e13f4
2 files changed
+227 -233

No files matched your search

+105 -127
View File
@@ -1,7 +1,15 @@
/* index.css — 社区首页专属样式(通用主题见 theme.css) */ /* index.css — 社区首页专属样式(通用主题见 theme.css)
*
* 布局原则:
* 1. 全站统一版心 .wrap(最大 1024px,左右槽线 1.25rem),
* 头部胶囊、特性网格、关于面板、CTA 横幅、页脚分隔线全部对齐同一内容栏;
* 2. 章节间距统一由 .section 控制,标题组(eyebrow/title/sub)样式全站一致;
* 3. 特性卡片 2×2 等宽网格,无跨列、无旋转装饰,视觉横平竖直。
*/
body { body {
align-items: normal; align-items: stretch;
padding: 0;
} }
/* 选中文字着色,与品牌色一致 */ /* 选中文字着色,与品牌色一致 */
@@ -14,6 +22,16 @@ body {
html { scroll-behavior: smooth; } html { scroll-behavior: smooth; }
} }
/* ===== 统一版心 ===== */
.wrap {
width: 100%;
max-width: 1024px;
margin: 0 auto;
padding: 0 1.25rem;
}
#main-page { width: 100%; }
/* ===== 按钮 ===== */ /* ===== 按钮 ===== */
.btn { .btn {
display: inline-flex; display: inline-flex;
@@ -67,19 +85,19 @@ body {
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-1px); } .btn-ghost:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; border-radius: 999px; letter-spacing: 0.02em; } .btn-lg { padding: 0.75rem 2rem; font-size: 1rem; border-radius: 999px; letter-spacing: 0.02em; }
/* ===== 头部:悬浮毛玻璃导航(镜像 minimap/userpanel 风格) ===== */ /* ===== 头部:悬浮毛玻璃胶囊,与版心同宽 ===== */
.header { .header {
position: sticky; position: sticky;
top: 0.75rem; top: 0.75rem;
z-index: 100; z-index: 100;
margin-top: 0.75rem;
}
.header-inner {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
gap: 0.5rem; gap: 0.5rem;
width: 100%;
max-width: 960px;
margin: 0 auto;
padding: 0.55rem 1.1rem; padding: 0.55rem 1.1rem;
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
background: rgba(253, 246, 238, 0.72); background: rgba(253, 246, 238, 0.72);
@@ -90,7 +108,7 @@ body {
transition: background 0.2s, border-color 0.2s; transition: background 0.2s, border-color 0.2s;
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
.header { .header-inner {
background: rgba(30, 23, 18, 0.72); background: rgba(30, 23, 18, 0.72);
border-color: var(--border); border-color: var(--border);
} }
@@ -99,6 +117,7 @@ body {
.header h1 { .header h1 {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.45rem;
font-size: 1.15rem; font-size: 1.15rem;
font-weight: 700; font-weight: 700;
letter-spacing: 0.01em; letter-spacing: 0.01em;
@@ -106,6 +125,7 @@ body {
user-select: none; user-select: none;
transition: color 0.15s; transition: color 0.15s;
} }
.header h1 svg { color: var(--accent); flex: none; }
.header h1:hover { color: var(--accent); } .header h1:hover { color: var(--accent); }
.right-group { .right-group {
@@ -131,13 +151,11 @@ body {
white-space: nowrap; white-space: nowrap;
} }
#main-page { width: 100%; }
/* ===== Hero 首屏 ===== */ /* ===== Hero 首屏 ===== */
.hero { .hero {
position: relative; position: relative;
text-align: center; text-align: center;
padding: 4.5rem 1rem 5.5rem; padding: 4.5rem 0 5.5rem;
overflow: hidden; overflow: hidden;
} }
/* 点阵底纹:中心清晰、四周渐隐 */ /* 点阵底纹:中心清晰、四周渐隐 */
@@ -172,7 +190,7 @@ body {
.hero-tree { .hero-tree {
position: absolute; position: absolute;
left: 50%; left: 50%;
bottom: -8px; bottom: 0;
transform: translateX(-50%); transform: translateX(-50%);
width: min(600px, 96%); width: min(600px, 96%);
height: auto; height: auto;
@@ -184,7 +202,7 @@ body {
.hero-tree { opacity: 0.2; } .hero-tree { opacity: 0.2; }
} }
/* eyebrow 徽章:呼吸圆点 + 胶囊 */ /* eyebrow 徽章:呼吸圆点 + 胶囊 */
.hero-badge { .hero-badge {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@@ -210,10 +228,10 @@ body {
} }
.hero-title { .hero-title {
font-size: clamp(2.1rem, 6.5vw, 3.3rem); font-size: clamp(2.1rem, 6.5vw, 3.2rem);
font-weight: 800; font-weight: 800;
line-height: 1.26; line-height: 1.28;
letter-spacing: 0.04em; letter-spacing: 0.02em;
text-wrap: balance; text-wrap: balance;
margin-bottom: 1.1rem; margin-bottom: 1.1rem;
} }
@@ -226,12 +244,12 @@ body {
color: transparent; color: transparent;
} }
.hero-sub { .hero-sub {
font-size: 1.08rem; font-size: 1.05rem;
letter-spacing: 0.03em; letter-spacing: 0.02em;
color: var(--fg-secondary); color: var(--fg-secondary);
max-width: 32rem; max-width: 32rem;
margin: 0 auto; margin: 0 auto;
line-height: 1.75; line-height: 1.8;
} }
.hero-actions { .hero-actions {
display: flex; display: flex;
@@ -255,11 +273,12 @@ body {
.scroll-hint:hover { color: var(--accent); } .scroll-hint:hover { color: var(--accent); }
.scroll-hint svg { width: 22px; height: 22px; } .scroll-hint svg { width: 22px; height: 22px; }
/* ===== 章节标题:eyebrow + 标题 + 渐变短杠 + 副标题 ===== */ /* ===== 章节节奏与标题组:全站统一 ===== */
.section { padding-top: 4.5rem; }
#features { scroll-margin-top: 5.5rem; } /* 锚点跳转时避开悬浮头部 */ #features { scroll-margin-top: 5.5rem; } /* 锚点跳转时避开悬浮头部 */
.section-eyebrow { .section-eyebrow {
text-align: center; text-align: center;
margin-top: 4.5rem;
font-size: 0.78rem; font-size: 0.78rem;
font-weight: 700; font-weight: 700;
letter-spacing: 0.28em; letter-spacing: 0.28em;
@@ -269,6 +288,7 @@ body {
.section-title { .section-title {
text-align: center; text-align: center;
margin-top: 0.7rem; margin-top: 0.7rem;
margin-bottom: 0;
font-size: 1.55rem; font-size: 1.55rem;
font-weight: 700; font-weight: 700;
letter-spacing: 0.02em; letter-spacing: 0.02em;
@@ -291,19 +311,14 @@ body {
color: var(--fg-secondary); color: var(--fg-secondary);
} }
/* ===== 特性卡片:Bento 网格 + 序号水印 + 光标光斑 + 图标点亮 ===== */ /* ===== 特性卡片:2×2 等宽网格 + 序号水印 + 光标光斑 + 图标点亮 ===== */
.features { .features {
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(2, 1fr);
gap: 1.1rem; gap: 1.1rem;
width: 100%; margin-top: 2.25rem;
max-width: 960px;
margin: 2rem auto 0;
counter-reset: feat; counter-reset: feat;
} }
/* Bento 节奏:首尾卡片横贯两列,形成 2+1 / 1+2 交错布局 */
.feature-card:nth-child(1),
.feature-card:nth-child(4) { grid-column: span 2; }
.feature-card { .feature-card {
counter-increment: feat; counter-increment: feat;
position: relative; position: relative;
@@ -314,7 +329,7 @@ body {
background-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 75%); background-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 75%);
border: 1px solid var(--border-light); border: 1px solid var(--border-light);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
padding: 1.8rem 1.5rem; padding: 1.7rem 1.5rem;
box-shadow: var(--shadow-sm); box-shadow: var(--shadow-sm);
overflow: hidden; overflow: hidden;
transition: transform 0.22s ease, box-shadow 0.25s ease, border-color 0.25s ease; transition: transform 0.22s ease, box-shadow 0.25s ease, border-color 0.25s ease;
@@ -396,27 +411,16 @@ body {
border-color: var(--accent); border-color: var(--accent);
} }
/* ===== 关于本站:左文右数的编辑感面板 ===== */ /* ===== 关于本站:居中面板 + 顶部渐变条 + 底部数据行 ===== */
.about {
text-align: center;
padding: 1rem 1rem 3.5rem;
width: 100%;
max-width: 960px;
margin: 0 auto;
}
.about .section-eyebrow, .about .section-title { margin-top: 0; }
.about-panel { .about-panel {
position: relative; position: relative;
display: flex; text-align: center;
align-items: center;
gap: 2.4rem;
text-align: left;
background: var(--card); background: var(--card);
border: 1px solid var(--border-light); border: 1px solid var(--border-light);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm); box-shadow: var(--shadow-sm);
padding: 2.4rem 2.6rem; padding: 2.2rem 2.4rem 2rem;
margin-top: 2rem; margin-top: 2.25rem;
overflow: hidden; overflow: hidden;
transition: border-color 0.25s, box-shadow 0.25s; transition: border-color 0.25s, box-shadow 0.25s;
} }
@@ -424,48 +428,40 @@ body {
border-color: var(--border); border-color: var(--border);
box-shadow: var(--shadow-md); box-shadow: var(--shadow-md);
} }
/* 左侧品牌渐变条 + 右上角装饰引号 */ /* 顶部品牌渐变条 */
.about-panel::before { .about-panel::before {
content: ""; content: "";
position: absolute; position: absolute;
left: 0;
top: 0; top: 0;
bottom: 0; left: 0;
width: 4px; right: 0;
background: linear-gradient(180deg, var(--accent), var(--accent-dark)); height: 3px;
background: linear-gradient(90deg, var(--accent), var(--accent-dark));
opacity: 0.85; opacity: 0.85;
} }
.about-panel::after {
content: "”";
position: absolute;
top: -0.6rem;
right: 1.1rem;
font-family: Georgia, 'Times New Roman', serif;
font-size: 5rem;
line-height: 1;
color: var(--accent-soft);
pointer-events: none;
}
.about .site-intro { flex: 1; min-width: 0; }
.site-intro { .site-intro {
max-width: 40rem;
margin: 0 auto;
font-size: 0.96rem; font-size: 0.96rem;
line-height: 1.95; line-height: 1.95;
color: var(--fg-secondary); color: var(--fg-secondary);
} }
/* 右侧数据列:竖向分隔线 + 渐变数字 */ /* 数据行:三项等分,顶部细线分隔 */
.about-stats { .about-stats {
list-style: none; list-style: none;
flex: none;
display: flex; display: flex;
flex-direction: column; justify-content: space-around;
gap: 1.15rem; gap: 1rem;
padding-left: 2.4rem; margin-top: 1.8rem;
border-left: 1px solid var(--border-light); padding-top: 1.5rem;
border-top: 1px solid var(--border-light);
} }
.about-stats li { .about-stats li {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.15rem; align-items: center;
gap: 0.2rem;
min-width: 0;
} }
.about-stats b { .about-stats b {
font-size: 1.45rem; font-size: 1.45rem;
@@ -481,7 +477,6 @@ body {
font-size: 0.78rem; font-size: 0.78rem;
letter-spacing: 0.02em; letter-spacing: 0.02em;
color: var(--muted); color: var(--muted);
white-space: nowrap;
} }
/* 快捷链接:胶囊按钮 */ /* 快捷链接:胶囊按钮 */
.quick-links { .quick-links {
@@ -520,12 +515,6 @@ body {
.quick-links a:hover::after { transform: translateX(3px); } .quick-links a:hover::after { transform: translateX(3px); }
/* ===== 结尾行动号召:品牌渐变横幅 ===== */ /* ===== 结尾行动号召:品牌渐变横幅 ===== */
.cta-section {
width: 100%;
max-width: 960px;
margin: 0.5rem auto 0;
padding: 0 1rem;
}
.cta-band { .cta-band {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
@@ -556,16 +545,15 @@ body {
height: 1px; height: 1px;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
} }
/* 品牌节点树水印 */ /* 品牌节点树水印(端正不倾斜) */
.cta-tree { .cta-tree {
position: absolute; position: absolute;
right: -28px; right: -20px;
bottom: -18px; bottom: -24px;
width: min(380px, 62%); width: min(360px, 58%);
height: auto; height: auto;
color: #fff; color: #fff;
opacity: 0.14; opacity: 0.14;
transform: rotate(-6deg);
pointer-events: none; pointer-events: none;
} }
.cta-title { .cta-title {
@@ -573,6 +561,7 @@ body {
font-size: clamp(1.45rem, 3.6vw, 1.9rem); font-size: clamp(1.45rem, 3.6vw, 1.9rem);
font-weight: 800; font-weight: 800;
letter-spacing: 0.03em; letter-spacing: 0.03em;
margin-bottom: 0;
} }
.cta-sub { .cta-sub {
position: relative; position: relative;
@@ -608,20 +597,23 @@ body {
.btn-cta { background: #38220f; color: #f7ead9; } .btn-cta { background: #38220f; color: #f7ead9; }
} }
/* ===== 页脚:品牌 + 导航 + 备案 ===== */ /* ===== 页脚:品牌 + 导航 + 备案(分隔线与版心同宽) ===== */
.footer { .footer {
width: 100%; width: 100%;
max-width: 960px; margin-top: auto;
padding: 0 1rem; padding-top: 4.5rem;
padding-bottom: 1.6rem;
} }
.footer-inner { .footer-inner {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
gap: 0.85rem; gap: 0.85rem;
margin-top: 3rem; padding-top: 1.8rem;
padding: 1.8rem 0 0.4rem;
border-top: 1px solid var(--border-light); border-top: 1px solid var(--border-light);
text-align: center;
font-size: 0.75rem;
color: var(--muted);
} }
.footer-brand { .footer-brand {
display: flex; display: flex;
@@ -647,6 +639,12 @@ body {
} }
.footer-nav a:hover { color: var(--accent); } .footer-nav a:hover { color: var(--accent); }
.footer-icp { margin-top: 0.15rem; } .footer-icp { margin-top: 0.15rem; }
.footer-icp a {
color: var(--muted);
text-decoration: none;
transition: color 0.15s;
}
.footer-icp a:hover { color: var(--accent); }
/* ===== 入场动画(首屏元素,页面加载即播) ===== */ /* ===== 入场动画(首屏元素,页面加载即播) ===== */
@keyframes fade-up { @keyframes fade-up {
@@ -722,31 +720,31 @@ body {
/* 平板及以下:收敛首屏光晕与留白 */ /* 平板及以下:收敛首屏光晕与留白 */
@media (max-width: 768px) { @media (max-width: 768px) {
body { padding: 1.25rem 0.75rem; } .hero { padding: 3.5rem 0 4rem; }
.hero { padding: 3.5rem 1.25rem 4rem; }
.hero::after { width: 440px; height: 440px; opacity: 0.45; } .hero::after { width: 440px; height: 440px; opacity: 0.45; }
.hero-tree { width: 130%; opacity: 0.12; } .hero-tree { width: 130%; opacity: 0.12; }
.hero-title { letter-spacing: 0.02em; } .section { padding-top: 3.5rem; }
.features { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; } .footer { padding-top: 3.5rem; }
.feature-card { padding: 1.5rem 1.25rem; } }
.about-panel { gap: 1.6rem; padding: 2rem 1.8rem; }
/* 手机:特性卡片转单列,整体排版收紧 */
@media (max-width: 640px) {
.features { grid-template-columns: 1fr; }
.feature-card:hover { transform: none; } /* 触屏取消悬浮位移 */
} }
/* 手机:全宽布局、紧凑排版 */
@media (max-width: 480px) { @media (max-width: 480px) {
body { padding: 1rem 0.75rem; } .wrap { padding: 0 0.85rem; }
.header {
top: 0.5rem; .header { top: 0.5rem; margin-top: 0.5rem; }
padding: 0.45rem 0.85rem; .header-inner { padding: 0.45rem 0.85rem; gap: 0.4rem; }
gap: 0.4rem;
}
.header h1 { font-size: 1rem; } .header h1 { font-size: 1rem; }
.header h1 svg { display: none; } /* 小屏隐藏 logo 图标,避免挤压 */ .header h1 svg { display: none; } /* 小屏隐藏 logo 图标,避免挤压 */
.right-group { gap: 0.35rem; } .right-group { gap: 0.35rem; }
.right-group .btn { padding: 0.5rem 0.95rem; font-size: 0.82rem; } .right-group .btn { padding: 0.5rem 0.95rem; font-size: 0.82rem; }
#name { max-width: 72px; } #name { max-width: 72px; }
.hero { padding: 2.75rem 0.75rem 2.5rem; } .hero { padding: 2.75rem 0 2.75rem; }
.hero::after { width: 310px; height: 310px; opacity: 0.35; } .hero::after { width: 310px; height: 310px; opacity: 0.35; }
.hero-tree { width: 160%; opacity: 0.1; } .hero-tree { width: 160%; opacity: 0.1; }
.hero-badge { font-size: 0.74rem; padding: 0.3rem 0.8rem; margin-bottom: 1.1rem; } .hero-badge { font-size: 0.74rem; padding: 0.3rem 0.8rem; margin-bottom: 1.1rem; }
@@ -760,44 +758,24 @@ body {
.hero-actions .btn-lg { width: 100%; padding: 0.85rem 1.5rem; } .hero-actions .btn-lg { width: 100%; padding: 0.85rem 1.5rem; }
.scroll-hint { display: none; } .scroll-hint { display: none; }
.section-eyebrow { margin-top: 2.75rem; } .section { padding-top: 2.75rem; }
.section-title { font-size: 1.3rem; } .section-title { font-size: 1.3rem; }
.features { margin-top: 1.25rem; grid-template-columns: 1fr; } .features { margin-top: 1.5rem; gap: 0.9rem; }
/* 单列布局下取消 Bento 跨列,避免撑出隐式第二列 */ .feature-card { padding: 1.4rem 1.25rem; }
.feature-card:nth-child(1),
.feature-card:nth-child(4) { grid-column: auto; }
.feature-card:hover { transform: none; } /* 触屏取消悬浮位移 */
.about { padding: 0.5rem 0.5rem 2.5rem; } .about-panel { padding: 1.6rem 1.3rem 1.5rem; margin-top: 1.5rem; }
.about-panel { .about-stats { margin-top: 1.4rem; padding-top: 1.2rem; gap: 0.6rem; }
flex-direction: column;
align-items: stretch;
gap: 1.4rem;
padding: 1.5rem 1.4rem;
}
.about-panel::after { font-size: 3.5rem; right: 0.8rem; }
/* 数据列转为横向排列,分隔线移到顶部 */
.about-stats {
flex-direction: row;
justify-content: space-between;
gap: 0.8rem;
padding-left: 0;
padding-top: 1.3rem;
border-left: none;
border-top: 1px solid var(--border-light);
}
.about-stats span { white-space: normal; }
.quick-links { gap: 0.6rem 0.8rem; margin-top: 1.5rem; } .quick-links { gap: 0.6rem 0.8rem; margin-top: 1.5rem; }
.cta-section { padding: 0 0.25rem; }
.cta-band { padding: 2.6rem 1.2rem 2.8rem; } .cta-band { padding: 2.6rem 1.2rem 2.8rem; }
.cta-tree { width: 78%; opacity: 0.1; } .cta-tree { width: 78%; opacity: 0.1; }
.footer-inner { margin-top: 2.2rem; }
.footer { padding-top: 2.75rem; }
} }
/* 超小屏 */ /* 超小屏 */
@media (max-width: 360px) { @media (max-width: 360px) {
.hero { padding: 2.25rem 0.5rem 2rem; }
.header h1 { font-size: 0.95rem; } .header h1 { font-size: 0.95rem; }
.right-group .btn { padding: 0.45rem 0.8rem; font-size: 0.8rem; } .right-group .btn { padding: 0.45rem 0.8rem; font-size: 0.8rem; }
.hero { padding: 2.25rem 0 2.25rem; }
} }
+122 -106
View File
@@ -13,21 +13,26 @@
</head> </head>
<body> <body>
<header class="header"> <header class="header">
<h1 id="logo"> <div class="wrap">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-2px;margin-right:6px;color:var(--accent)"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.59" y1="10.51" x2="15.42" y2="6.51"/><line x1="8.59" y1="13.49" x2="15.42" y2="17.49"/></svg> <div class="header-inner">
DNFS 树状笔记 <h1 id="logo">
</h1> <svg viewBox="0 0 24 24" width="17" height="17" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.59" y1="10.51" x2="15.42" y2="6.51"/><line x1="8.59" y1="13.49" x2="15.42" y2="17.49"/></svg>
<nav class="right-group" aria-label="用户操作"> <span>DNFS 树状笔记</span>
<img src="favicon.ico" alt="用户头像" id="avatar" style="display:none"> </h1>
<b id="name" style="display:none"></b> <nav class="right-group" aria-label="用户操作">
<button id="enterBtn" class="btn btn-primary" style="display:none">进入笔记</button> <img src="favicon.ico" alt="用户头像" id="avatar" style="display:none">
<button id="logoutBtn" class="btn btn-ghost" style="display:none">退出</button> <b id="name" style="display:none"></b>
<button id="loginBtn" class="btn btn-primary">登录</button> <button id="enterBtn" class="btn btn-primary" style="display:none">进入笔记</button>
<button id="registerBtn" class="btn btn-ghost">注册</button> <button id="logoutBtn" class="btn btn-ghost" style="display:none">退出</button>
</nav> <button id="loginBtn" class="btn btn-primary">登录</button>
<button id="registerBtn" class="btn btn-ghost">注册</button>
</nav>
</div>
</div>
</header> </header>
<main id="main-page"> <main id="main-page">
<!-- ===== Hero 首屏 ===== -->
<section class="hero"> <section class="hero">
<!-- 品牌装饰:节点树(生长动画见 index.css,纯装饰不影响交互) --> <!-- 品牌装饰:节点树(生长动画见 index.css,纯装饰不影响交互) -->
<svg class="hero-tree" viewBox="0 0 640 360" fill="none" aria-hidden="true"> <svg class="hero-tree" viewBox="0 0 640 360" fill="none" aria-hidden="true">
@@ -52,10 +57,10 @@
</g> </g>
</svg> </svg>
<div class="hero-inner"> <div class="wrap hero-inner">
<div class="hero-badge"><span class="badge-dot"></span>树状结构 · Markdown · 多媒体分享</div> <p class="hero-badge"><span class="badge-dot"></span>树状结构 · Markdown · 多媒体分享</p>
<h2 class="hero-title">让知识像树一样<br><span class="accent-text">自然生长</span></h2> <h2 class="hero-title">让知识像树一样<br><span class="accent-text">自然生长</span></h2>
<p class="hero-sub">每个节点都可以生长出子节点,像树枝一样层层延展</p> <p class="hero-sub">每个节点都可以生长出子节点,像树枝一样层层延展,让零散的想法汇聚成体系</p>
<div class="hero-actions"> <div class="hero-actions">
<button class="btn btn-primary btn-lg" data-cta>开始记录</button> <button class="btn btn-primary btn-lg" data-cta>开始记录</button>
<a class="btn btn-ghost btn-lg" href="#features">了解更多</a> <a class="btn btn-ghost btn-lg" href="#features">了解更多</a>
@@ -67,114 +72,125 @@
</a> </a>
</section> </section>
<section id="features"> <!-- ===== 核心特性 ===== -->
<p class="section-eyebrow">核心特性</p> <section id="features" class="section">
<h2 class="section-title">为什么选择树状笔记</h2> <div class="wrap">
<p class="section-sub">从灵感到体系,四个理由让知识在树上自然生长</p> <p class="section-eyebrow">核心特性</p>
<div class="features"> <h2 class="section-title">为什么选择树状笔记</h2>
<div class="feature-card"> <p class="section-sub">从灵感到体系,四个理由让知识在树上自然生长</p>
<div class="feature-icon" aria-hidden="true"> <div class="features">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.59" y1="10.51" x2="15.42" y2="6.51"/><line x1="8.59" y1="13.49" x2="15.42" y2="17.49"/></svg> <div class="feature-card">
<div class="feature-icon" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.59" y1="10.51" x2="15.42" y2="6.51"/><line x1="8.59" y1="13.49" x2="15.42" y2="17.49"/></svg>
</div>
<h3>树状结构组织</h3>
<p>每个节点都能生长出子节点,像树枝般层层延展,让零散的想法自然汇聚成体系,长成一棵属于你的知识树。</p>
<span class="feature-tag">无限层级</span>
</div> </div>
<h3>树状结构组织</h3> <div class="feature-card">
<p>每个节点都能生长出子节点,像树枝般层层延展,让零散的想法自然汇聚成体系,长成一棵属于你的知识树。</p> <div class="feature-icon" aria-hidden="true">
<span class="feature-tag">无限层级</span> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"/><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"/></svg>
</div> </div>
<div class="feature-card"> <h3>Markdown 写作</h3>
<div class="feature-icon" aria-hidden="true"> <p>原生支持 Markdown 渲染,代码块、引用、列表一应俱全,专注内容本身。</p>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"/><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"/></svg> <span class="feature-tag">专注写作</span>
</div> </div>
<h3>Markdown 写作</h3> <div class="feature-card">
<p>原生支持 Markdown 渲染,代码块、引用、列表一应俱全,专注内容本身。</p> <div class="feature-icon" aria-hidden="true">
<span class="feature-tag">专注写作</span> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>
</div> </div>
<div class="feature-card"> <h3>多媒体分享</h3>
<div class="feature-icon" aria-hidden="true"> <p>链接卡片、图片直显、文件下载,多种内容形态一站承载,分享更自由。</p>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg> <span class="feature-tag">自由分享</span>
</div> </div>
<h3>多媒体分享</h3> <div class="feature-card">
<p>链接卡片、图片直显、文件下载,多种内容形态一站承载,分享更自由。</p> <div class="feature-icon" aria-hidden="true">
<span class="feature-tag">自由分享</span> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
</div> </div>
<div class="feature-card"> <h3>深色模式</h3>
<div class="feature-icon" aria-hidden="true"> <p>跟随系统偏好自动切换明暗主题,深夜记录也不刺眼,日夜皆宜的舒适阅读体验。</p>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg> <span class="feature-tag">日夜皆宜</span>
</div> </div>
<h3>深色模式</h3>
<p>跟随系统偏好自动切换明暗主题,深夜记录也不刺眼,日夜皆宜的舒适阅读体验。</p>
<span class="feature-tag">日夜皆宜</span>
</div> </div>
</div> </div>
</section> </section>
<section class="about"> <!-- ===== 关于本站 ===== -->
<p class="section-eyebrow">我们的理念</p> <section class="section about">
<h2 class="section-title">关于本站</h2> <div class="wrap">
<div class="about-panel"> <p class="section-eyebrow">我们的理念</p>
<p class="site-intro"> <h2 class="section-title">关于本站</h2>
DNFS 树状笔记是一个以树状结构组织内容的笔记社区:每个节点都可以生长出子节点, <div class="about-panel">
像树枝一样层层延展,让知识自然成体系。支持 Markdown 文本、链接卡片、图片与文件分享, <p class="site-intro">
注册登录后即可创建属于你自己的知识树。 DNFS 树状笔记是一个以树状结构组织内容的笔记社区:每个节点都可以生长出子节点,
</p> 像树枝一样层层延展,让知识自然成体系。支持 Markdown 文本、链接卡片、图片与文件分享,
<ul class="about-stats"> 注册登录后即可创建属于你自己的知识树。
<li><b>∞</b><span>节点层级无上限</span></li> </p>
<li><b>MD</b><span>原生 Markdown 渲染</span></li> <ul class="about-stats">
<li><b>4+</b><span>内容形态一站承载</span></li> <li><b>∞</b><span>节点层级无上限</span></li>
</ul> <li><b>MD</b><span>原生 Markdown 渲染</span></li>
</div> <li><b>4+</b><span>内容形态一站承载</span></li>
<div class="quick-links"> </ul>
<a href="allcolor.html">调色板</a> </div>
<a href="games/">小游戏</a> <nav class="quick-links" aria-label="快捷链接">
<a href="LICENSE.html">用户使用条例</a> <a href="allcolor.html">调色板</a>
<a href="games/">小游戏</a>
<a href="LICENSE.html">用户使用条例</a>
</nav>
</div> </div>
</section> </section>
<section class="cta-section" aria-label="立即开始"> <!-- ===== 结尾行动号召 ===== -->
<div class="cta-band"> <section class="section cta-section" aria-label="立即开始">
<!-- 品牌装饰:节点树水印(纯装饰) --> <div class="wrap">
<svg class="cta-tree" viewBox="0 0 640 360" fill="none" aria-hidden="true"> <div class="cta-band">
<g stroke="currentColor" stroke-width="2" stroke-linecap="round"> <!-- 品牌装饰:节点树水印(纯装饰) -->
<path d="M320 344 L320 262"/> <svg class="cta-tree" viewBox="0 0 640 360" fill="none" aria-hidden="true">
<path d="M320 262 C 282 236, 238 214, 202 184"/> <g stroke="currentColor" stroke-width="2" stroke-linecap="round">
<path d="M320 262 C 358 236, 402 214, 438 184"/> <path d="M320 344 L320 262"/>
<path d="M202 184 C 178 156, 156 134, 142 104"/> <path d="M320 262 C 282 236, 238 214, 202 184"/>
<path d="M202 184 C 222 156, 244 134, 258 104"/> <path d="M320 262 C 358 236, 402 214, 438 184"/>
<path d="M438 184 C 414 156, 396 134, 382 104"/> <path d="M202 184 C 178 156, 156 134, 142 104"/>
<path d="M438 184 C 462 156, 484 134, 498 104"/> <path d="M202 184 C 222 156, 244 134, 258 104"/>
</g> <path d="M438 184 C 414 156, 396 134, 382 104"/>
<g fill="currentColor"> <path d="M438 184 C 462 156, 484 134, 498 104"/>
<circle cx="320" cy="344" r="6"/> </g>
<circle cx="320" cy="262" r="4.5"/> <g fill="currentColor">
<circle cx="202" cy="184" r="4.5"/> <circle cx="320" cy="344" r="6"/>
<circle cx="438" cy="184" r="4.5"/> <circle cx="320" cy="262" r="4.5"/>
<circle cx="142" cy="104" r="4"/> <circle cx="202" cy="184" r="4.5"/>
<circle cx="258" cy="104" r="4"/> <circle cx="438" cy="184" r="4.5"/>
<circle cx="382" cy="104" r="4"/> <circle cx="142" cy="104" r="4"/>
<circle cx="498" cy="104" r="4"/> <circle cx="258" cy="104" r="4"/>
</g> <circle cx="382" cy="104" r="4"/>
</svg> <circle cx="498" cy="104" r="4"/>
<h2 class="cta-title">准备好让知识生长了吗?</h2> </g>
<p class="cta-sub">注册一个账号,种下你的第一棵知识树</p> </svg>
<button class="btn btn-cta btn-lg" data-cta>立即开始</button> <h2 class="cta-title">准备好让知识生长了吗?</h2>
<p class="cta-sub">注册一个账号,种下你的第一棵知识树</p>
<button class="btn btn-cta btn-lg" data-cta>立即开始</button>
</div>
</div> </div>
</section> </section>
</main> </main>
<footer class="footer"> <footer class="footer">
<div class="footer-inner"> <div class="wrap">
<div class="footer-brand"> <div class="footer-inner">
<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.59" y1="10.51" x2="15.42" y2="6.51"/><line x1="8.59" y1="13.49" x2="15.42" y2="17.49"/></svg> <div class="footer-brand">
<span>DNFS 树状笔记</span> <svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.59" y1="10.51" x2="15.42" y2="6.51"/><line x1="8.59" y1="13.49" x2="15.42" y2="17.49"/></svg>
<span>DNFS 树状笔记</span>
</div>
<nav class="footer-nav" aria-label="页脚导航">
<a href="dnfs.html">树状笔记</a>
<a href="allcolor.html">调色板</a>
<a href="games/">小游戏</a>
<a href="LICENSE.html">用户使用条例</a>
</nav>
<p class="footer-icp">
<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener">蜀ICP备2024107064号-2</a>
</p>
</div> </div>
<nav class="footer-nav" aria-label="页脚导航">
<a href="dnfs.html">树状笔记</a>
<a href="allcolor.html">调色板</a>
<a href="games/">小游戏</a>
<a href="LICENSE.html">用户使用条例</a>
</nav>
<p class="footer-icp">
<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener">蜀ICP备2024107064号-2</a>
</p>
</div> </div>
</footer> </footer>
<script src="js/token_manager.js"></script> <script src="js/token_manager.js"></script>