mirror of
https://github.com/comeonzhj/Auto-Redbook-Skills.git
synced 2026-03-27 12:49:27 +08:00
Add files via upload
This commit is contained in:
318
assets/styles.css
Normal file
318
assets/styles.css
Normal file
@@ -0,0 +1,318 @@
|
||||
/* 小红书卡片样式 */
|
||||
|
||||
/* CSS 变量定义 */
|
||||
:root {
|
||||
--primary-color: #ff2442;
|
||||
--primary-light: #ff6b81;
|
||||
--text-primary: #1e293b;
|
||||
--text-secondary: #334155;
|
||||
--text-muted: #64748b;
|
||||
--text-light: #475569;
|
||||
--background-light: #f8fafc;
|
||||
--background-gray: #f1f5f9;
|
||||
--border-color: #e2e8f0;
|
||||
--border-radius: 25px;
|
||||
--card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
|
||||
--font-family: 'Source Han Sans CN', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
|
||||
}
|
||||
|
||||
/* 全局样式重置 */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-family);
|
||||
background: transparent;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* ========================
|
||||
封面卡片样式
|
||||
======================== */
|
||||
|
||||
.cover-container {
|
||||
width: 1080px;
|
||||
height: 1440px;
|
||||
background: linear-gradient(180deg, #3450E4 0%, #D266DA 100%);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cover-inner {
|
||||
position: absolute;
|
||||
width: 950px;
|
||||
height: 1310px;
|
||||
left: 65px;
|
||||
top: 65px;
|
||||
background: #F3F3F3;
|
||||
border-radius: var(--border-radius);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 60px 85px;
|
||||
}
|
||||
|
||||
.cover-emoji {
|
||||
font-size: 180px;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.cover-title {
|
||||
font-weight: 900;
|
||||
font-size: 130px;
|
||||
line-height: 1.35;
|
||||
background: linear-gradient(180deg, #2E67B1 0%, #4C4C4C 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
margin-bottom: auto;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.cover-subtitle {
|
||||
font-weight: 350;
|
||||
font-size: 72px;
|
||||
line-height: 1.4;
|
||||
color: #000000;
|
||||
margin-top: auto;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
/* ========================
|
||||
正文卡片样式
|
||||
======================== */
|
||||
|
||||
.card-container {
|
||||
width: 1080px;
|
||||
min-height: 1440px;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
position: relative;
|
||||
padding: 50px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.card-inner {
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
border-radius: 20px;
|
||||
padding: 60px;
|
||||
min-height: calc(1440px - 100px);
|
||||
box-shadow: var(--card-shadow);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
/* Markdown 内容样式 */
|
||||
.card-content {
|
||||
color: var(--text-light);
|
||||
font-size: 42px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.card-content h1 {
|
||||
font-size: 72px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 40px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.card-content h2 {
|
||||
font-size: 56px;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
margin: 50px 0 25px 0;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.card-content h3 {
|
||||
font-size: 48px;
|
||||
font-weight: 600;
|
||||
color: var(--text-light);
|
||||
margin: 40px 0 20px 0;
|
||||
}
|
||||
|
||||
.card-content p {
|
||||
margin-bottom: 35px;
|
||||
}
|
||||
|
||||
.card-content strong {
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.card-content em {
|
||||
font-style: italic;
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.card-content a {
|
||||
color: var(--primary-color);
|
||||
text-decoration: none;
|
||||
border-bottom: 2px solid var(--primary-color);
|
||||
}
|
||||
|
||||
.card-content ul,
|
||||
.card-content ol {
|
||||
margin: 30px 0;
|
||||
padding-left: 60px;
|
||||
}
|
||||
|
||||
.card-content li {
|
||||
margin-bottom: 20px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.card-content blockquote {
|
||||
border-left: 8px solid var(--primary-color);
|
||||
padding-left: 40px;
|
||||
background: var(--background-gray);
|
||||
padding-top: 25px;
|
||||
padding-bottom: 25px;
|
||||
margin: 35px 0;
|
||||
color: var(--text-muted);
|
||||
font-style: italic;
|
||||
border-radius: 0 12px 12px 0;
|
||||
}
|
||||
|
||||
.card-content blockquote p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.card-content code {
|
||||
background: var(--background-gray);
|
||||
padding: 6px 16px;
|
||||
border-radius: 8px;
|
||||
font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
|
||||
font-size: 38px;
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.card-content pre {
|
||||
background: var(--text-primary);
|
||||
color: #e2e8f0;
|
||||
padding: 40px;
|
||||
border-radius: 16px;
|
||||
margin: 35px 0;
|
||||
overflow-x: visible;
|
||||
overflow-wrap: break-word;
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
white-space: pre-wrap;
|
||||
font-size: 36px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.card-content pre code {
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
padding: 0;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.card-content img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
border-radius: 16px;
|
||||
margin: 35px auto;
|
||||
display: block;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.card-content hr {
|
||||
border: none;
|
||||
height: 2px;
|
||||
background: var(--border-color);
|
||||
margin: 50px 0;
|
||||
}
|
||||
|
||||
/* Tags 标签样式 */
|
||||
.card-content .tags {
|
||||
margin-top: 50px;
|
||||
padding-top: 30px;
|
||||
border-top: 2px solid var(--border-color);
|
||||
}
|
||||
|
||||
.card-content .tag {
|
||||
display: inline-block;
|
||||
background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
|
||||
color: white;
|
||||
padding: 12px 28px;
|
||||
border-radius: 30px;
|
||||
font-size: 34px;
|
||||
margin: 10px 15px 10px 0;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 信息卡片样式 */
|
||||
.info-card {
|
||||
margin: 40px 0;
|
||||
padding: 40px 50px;
|
||||
background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
|
||||
border: 2px solid rgba(99, 102, 241, 0.2);
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
|
||||
}
|
||||
|
||||
.info-card.success {
|
||||
background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.12) 100%);
|
||||
border-color: rgba(16, 185, 129, 0.2);
|
||||
}
|
||||
|
||||
.info-card.warning {
|
||||
background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.12) 100%);
|
||||
border-color: rgba(245, 158, 11, 0.2);
|
||||
}
|
||||
|
||||
.info-card.error {
|
||||
background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.12) 100%);
|
||||
border-color: rgba(239, 68, 68, 0.2);
|
||||
}
|
||||
|
||||
/* 页码样式 */
|
||||
.page-number {
|
||||
position: absolute;
|
||||
bottom: 80px;
|
||||
right: 80px;
|
||||
font-size: 36px;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* ========================
|
||||
渐变背景预设
|
||||
======================== */
|
||||
|
||||
.bg-gradient-1 {
|
||||
background: linear-gradient(180deg, #3450E4 0%, #D266DA 100%);
|
||||
}
|
||||
|
||||
.bg-gradient-2 {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
}
|
||||
|
||||
.bg-gradient-3 {
|
||||
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
||||
}
|
||||
|
||||
.bg-gradient-4 {
|
||||
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
|
||||
}
|
||||
|
||||
.bg-gradient-5 {
|
||||
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
|
||||
}
|
||||
|
||||
.bg-gradient-6 {
|
||||
background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
|
||||
}
|
||||
|
||||
.bg-gradient-7 {
|
||||
background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
|
||||
}
|
||||
|
||||
.bg-gradient-8 {
|
||||
background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
|
||||
}
|
||||
Reference in New Issue
Block a user