| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487 |
- .main-inner
- width 60%
- // 文章块添加阴影
- .post-block
- margin-top 60px
- padding 25px
- box-shadow 0 0 5px rgb(210 210 210)
- // Custom styles.
- .post {
- margin-bottom: 60px;
- margin-top: 0;
- padding: 25px;
- -moz-box-shadow: 0 0 5px rgba(202, 203, 204, .5);
- -webkit-box-shadow: 0 0 5px rgba(202, 203, 203, .5);
- }
- // Custom styles.
- code {
- background: #fbf7f8;
- color: #ff7600;
- margin: 2px;
- }
- // 大代码块的自定义样式
- .highlight, pre {
- border-radius: 3px;
- margin: 5px 0;
- padding: 5px;
- }
- .highlight, code, pre {
- border: 1px solid #d6d6d6;
- }
- //全文字体
- body {
- font-family: 'Noto Serif SC',"PingFang SC","Microsoft YaHei",sans-serif;
- }
- code, pre {
- font-family: 'Roboto Mono',consolas,Menlo,monospace,"PingFang SC","Microsoft YaHei";
- }
- .post-body[itemprop="articleBody"] p {
- color: rgb(63, 63, 63);
- font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
- font-size: 14px;
- letter-spacing: normal;
- }
- // 菜单栏样式
- .header {
- background: #ffffff !important;
- }
- //去除菜单项左边icon
- .menu-item .fa {
- display: none;
- }
- //更改菜单项字体大小
- .menu-item a, .menu-item span.exturl {
- font-size: 1.025em;
- }
- .menu-item-active a, .menu .menu-item a:hover, .menu .menu-item span.exturl:hover {
- background: #ffffff;
- color: #000;
- font-size: 1.125em;
- }
- //去掉网站名上下的横线
- .logo-line-before i, .logo-line-after i {
- display: none;
- }
- //更改网站名字体大小
- .site-title {
- font-size: 2em;
- }
- // 菜单栏样式结束
- //侧边栏样式
- .sidebar {
- background: #bbbbbb1a;
- bottom: 0;
- position: fixed;
- box-shadow: inset 0 0px 0px #0000;
- top: 0;
- z-index: 200;
- }
- //目录与站点概览链接样式
- .sidebar-nav li{
- color: #555;
- font-size: 1em;
- }
- .sidebar-nav li:hover{
- color: #222;
- }
- .sidebar-nav li.sidebar-nav-overview {
- margin-left: 10px;
- }
- .sidebar-nav .sidebar-nav-active {
- border-bottom-color: #222;
- color: #222;
- }
- .sidebar-nav .sidebar-nav-active:hover {
- border-bottom-color: #222;
- color: #222;
- }
- //目录样式
- .post-toc ol a {
- border-bottom-color: #5550;
- }
- .post-toc .nav .active-current > a {
- color: #222;
- }
- .post-toc .nav .active > a {
- border-bottom-color: #222;
- color: #222;
- }
- .post-toc .nav .active-current > a:hover {
- color: #222;
- }
- //头像样式
- .site-author-image {
- border: 0px solid #333;
- }
- //name字体颜色
- .site-author-name {
- color: #222;
- }
- //description颜色
- .site-description {
- color: #222;
- }
- //sidebar-item颜色
- .sidebar a, .sidebar span.exturl {
- border-bottom-color: #2220;
- color: #222;
- }
- .sidebar a:hover, .sidebar span.exturl:hover {
- border-bottom-color: #2220;
- color: #22222282;
- }
- //RSS样式
- .feed-link a, .chat a {
- border: 0px solid #fc6423;
- }
- .feed-link a:hover, .chat a:hover {
- background: #bbbbbb1a;
- border: 0px solid #fc6423;
- color: #222;
- }
- .fa-feed:before, .fa-rss:before {
- color: #222;
- }
- //社交链接样式
- .links-of-author a::before, .links-of-author span.exturl::before {
- display: none;
- }
- //展开按钮
- .toggle .toggle-line {
- background: #222;
- height: 3px;
- }
- .sidebar-toggle {
- background: #bbb0;
- height: 20px;
- width: 25px;
- }
- //返回顶部按钮
- .back-to-top {
- background: #2220;
- color: #222;
- }
- //侧边栏样式结束
- //文章块添加阴影
- .post-block{
- margin-top: 60px;
- margin-bottom: 60px;
- border-radius: 20px; //文章背景设置圆角
- padding: 30px 60px 30px 60px;
- background:rgba(255,255,255,0.5) none repeat scroll !important; //添加透明效果
- // -webkit-box-shadow: 0 0 15px rgba(202, 203, 203, .8); //文章块阴影
- // -moz-box-shadow: 0 0 15px rgba(202, 203, 204, .8);
- }
- //调节文章宽度
- .main-inner {
- // width: 65%;
- }
- //调整子标题文本大小
- .site-subtitle {
- font-size: 1em;
- }
- //加入背景图片
- //body {
- // background: url(/images/background.jpg)
- // background-repeat: no-repeat;
- // background-attachment:fixed;
- // background-position:50% 50%;
- //}
-
- //调整文章块底部空白大小
- .post-eof {
- margin: 20px auto 20px;
- }
- //调整按钮透明度
- .btn {
- background: rgba(255,255,255,0);
- }
- // 重点文字样式1 - 黄色背景标注
- .highlight-text {
- background-color: #fff566;
- padding: 2px 5px;
- border-radius: 3px;
- }
- // 重点文字样式2 - 波浪下划线
- .wavy-underline {
- text-decoration: wavy underline #ff3333;
- }
- // 重点文字样式3 - 渐变色文字
- .gradient-text {
- background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
- -webkit-background-clip: text;
- color: transparent;
- font-weight: bold;
- }
- // 重点文字样式4 - 阴影效果
- .shadow-text {
- text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
- }
- // 重点文字样式5 - 边框包围
- .border-text {
- border: 2px solid #1890ff;
- padding: 0 5px;
- border-radius: 4px;
- }
- @keyframes highlight {
- 0% { background-color: #fffae6; }
- 50% { background-color: #fff5cc; }
- 100% { background-color: #fffae6; }
- }
- .animated-highlight {
- animation: highlight 2s infinite;
- padding: 10px;
- border-radius: 5px;
- font-weight: bold;
- }
- .warning {
- color: #d9534f; /* 红色字体 */
- font-weight: bold;
- }
- .warning:before {
- content: "⚠️"; /* 警告符号 */
- margin-right: 8px;
- }
- .important-note {
- border-left: 4px solid #007BFF; /* 蓝色强调 */
- background-color: #f9f9f9; /* 浅灰背景 */
- padding: 10px 15px;
- font-style: italic;
- }
- .card {
- background-color: #e7f3fe; /* 浅蓝背景 */
- border: 1px solid #b3d8ff; /* 蓝色边框 */
- padding: 15px;
- border-radius: 8px;
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
- font-size: 1rem;
- }
- /* 标签容器 */
- .tag-container {
- margin-top: 10px;
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- justify-content: flex-start;
- margin-bottom: 20px;
- gap: 5px;
- }
- /* 主标签样式 */
- .main-tag {
- font-size: 11px;
- font-weight: bold;
- background: linear-gradient(45deg, #ff416c, #ff4b2b);
- color: white;
- padding: 2px 5px;
- border-radius: 4px;
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
- }
- /* 次要标签样式 */
- .sub-tag {
- font-size: 10px;
- font-weight: 400;
- background: linear-gradient(45deg, #1fa2ff, #12d8fa);
- color: white;
- padding: 2px 5px;
- border-radius: 4px;
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
- }
- .ai-tag {
- position: relative;
- display: inline-block;
- padding: 0px 9px;
- font-size: 12px;
- color: white;
- background: linear-gradient(135deg, #6366F1, #8B5CF6);
- border-radius: 6px;
- box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
- overflow: hidden;
- transition: all 0.3s ease;
- }
-
- .ai-tag::before {
- content: "";
- position: absolute;
- top: -50%;
- left: -50%;
- width: 200%;
- height: 200%;
- background: linear-gradient(45deg,
- rgba(255, 255, 255, 0) 0%,
- rgba(255, 255, 255, 0.25) 50%,
- rgba(255, 255, 255, 0) 100%);
- transform: rotate(45deg);
- animation: shine 3s infinite linear;
- }
-
- .ai-tag:hover {
- transform: translateY(-3px);
- box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
- }
-
- @keyframes shine {
- 0% {
- left: -100%;
- top: -100%;
- }
- 100% {
- left: 100%;
- top: 100%;
- }
- }
-
- /* 闪烁动画效果 */
- @keyframes pulse {
- 0%, 100% {
- opacity: 1;
- text-shadow: 0 0 0 rgba(255, 255, 255, 0);
- transform: scale(1);
- }
- 50% {
- opacity: 0.9;
- text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
- transform: scale(1.02);
- }
- }
-
- .ai-tag .blink {
- animation: pulse 2s infinite ease-in-out;
- display: inline-block;
- }
- /* 引言样式 */
- .article-quote {
- position: relative;
- margin: 2em 0;
- padding: 1.5em 2em;
- background: #f8f9fa;
- border-left: 4px solid #6b90da;
- border-radius: 3px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- }
- .article-quote::before {
- content: '"';
- position: absolute;
- top: 10px;
- left: 10px;
- font-size: 3em;
- color: #6b90da;
- opacity: 0.2;
- }
- /* 正文分割样式 */
- .content-divider {
- margin: 2em 0;
- text-align: center;
- overflow: hidden;
- }
- .content-divider::before {
- content: "✧";
- color: #6b90da;
- margin: 0 0.5em;
- }
- .content-divider::after {
- content: "✧";
- color: #6b90da;
- margin: 0 0.5em;
- }
- /* 1. 动态渐变分隔线 */
- .divider-gradient {
- height: 3px;
- background: linear-gradient(90deg, #12c2e9, #c471ed, #f64f59);
- margin: 2em 0;
- background-size: 200% 100%;
- animation: gradient-move 3s infinite linear;
- }
- @keyframes gradient-move {
- 0% { background-position: 0% 50%; }
- 100% { background-position: 200% 50%; }
- }
- /* 2. 波浪分隔线 */
- .divider-wave {
- height: 60px;
- background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23f3f4f6'/%3E%3C/path%3E%3C/svg%3E");
- background-size: cover;
- margin: 2em 0;
- }
- /* 3. 科技感分隔线 */
- .divider-tech {
- position: relative;
- height: 2px;
- background: #000;
- margin: 2em 0;
- overflow: hidden;
- }
- .divider-tech::before {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- height: 100%;
- width: 50%;
- background: linear-gradient(90deg, transparent, #00ff4c);
- animation: tech-line 2s infinite;
- }
- @keyframes tech-line {
- 0% { transform: translateX(-200%); }
- 100% { transform: translateX(400%); }
- }
- /* 4. 星空分隔线 */
- .divider-stars {
- height: 3px;
- background: #000;
- margin: 2em 0;
- position: relative;
- overflow: hidden;
- }
- .divider-stars::after {
- content: '★ ★ ★';
- position: absolute;
- top: -14px;
- left: 50%;
- transform: translateX(-50%);
- color: #ffd700;
- animation: twinkle 1.5s infinite;
- }
- @keyframes twinkle {
- 0%, 100% { opacity: 1; }
- 50% { opacity: 0.3; }
- }
|