@windcoder/astro-theme-orchid 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -699,6 +699,112 @@ html.dark #modeToggle .i-sun {
699
699
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
700
700
  }
701
701
 
702
+ /* ---------- 3.5b 全站背景壁纸(§4.92):fixed 视口背景,与顶部 banner(§4.42)独立 ---------- */
703
+ /* body 背景传播为画布底色:负 z-index 定位子元素画在其上、内容之下——壁纸加载中仍有底色兜底,
704
+ body 自身的径向渐变装饰同样在画布层,被壁纸自然覆盖 */
705
+ .site-wallpaper {
706
+ position: fixed;
707
+ inset: 0;
708
+ z-index: -1;
709
+ overflow: hidden;
710
+ pointer-events: none;
711
+ }
712
+ .site-wallpaper img {
713
+ width: 100%;
714
+ height: 100%;
715
+ object-fit: cover;
716
+ filter: blur(var(--wp-blur, 0px));
717
+ /* 模糊边缘泛出透明底:按模糊量轻微放大补偿(服务端算好 --wp-scale) */
718
+ transform: scale(var(--wp-scale, 1));
719
+ }
720
+ /* 遮罩层:浅/暗双档不透明度(--wp-dim / --wp-dim-dark),保证任意壁纸下正文可读 */
721
+ .site-wallpaper-dim {
722
+ position: absolute;
723
+ inset: 0;
724
+ background: rgb(0 0 0 / var(--wp-dim, 0.45));
725
+ }
726
+ html.dark .site-wallpaper-dim {
727
+ background: rgb(0 0 0 / var(--wp-dim-dark, 0.65));
728
+ }
729
+
730
+ /* ---------- 3.5c 番组追番页(§4.93) ---------- */
731
+ .bangumi-grid {
732
+ display: grid;
733
+ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
734
+ gap: 20px;
735
+ }
736
+ .bangumi-card {
737
+ display: flex;
738
+ flex-direction: column;
739
+ padding: 0;
740
+ overflow: hidden;
741
+ color: var(--ink);
742
+ transition:
743
+ box-shadow 0.2s,
744
+ transform 0.2s,
745
+ border-color 0.2s;
746
+ }
747
+ .bangumi-card:hover {
748
+ box-shadow: var(--shadow-md);
749
+ transform: translateY(-2px);
750
+ border-color: var(--border-2);
751
+ color: var(--ink);
752
+ }
753
+ .bangumi-cover {
754
+ position: relative;
755
+ aspect-ratio: 3 / 4;
756
+ overflow: hidden;
757
+ /* 封面加载前的底色兜底 */
758
+ background: var(--border);
759
+ }
760
+ .bangumi-cover img {
761
+ width: 100%;
762
+ height: 100%;
763
+ object-fit: cover;
764
+ transition: transform 0.3s;
765
+ }
766
+ .bangumi-card:hover .bangumi-cover img {
767
+ transform: scale(1.05);
768
+ }
769
+ /* bgm.tv 封面在暗色下偏刺眼:柔和压暗降饱和(类级固定,无配置项) */
770
+ html.dark .bangumi-cover img {
771
+ filter: brightness(0.85) saturate(0.9);
772
+ }
773
+ .bangumi-score {
774
+ position: absolute;
775
+ top: 8px;
776
+ right: 8px;
777
+ padding: 2px 7px;
778
+ border-radius: 999px;
779
+ background: rgb(0 0 0 / 0.62);
780
+ color: #ffd76a;
781
+ font-size: 12px;
782
+ font-weight: 700;
783
+ font-variant-numeric: tabular-nums;
784
+ }
785
+ .bangumi-title {
786
+ padding: 10px 12px 4px;
787
+ font-size: 13.5px;
788
+ font-weight: 600;
789
+ line-height: 1.45;
790
+ /* 两行截断:长译名不出卡片 */
791
+ display: -webkit-box;
792
+ -webkit-box-orient: vertical;
793
+ -webkit-line-clamp: 2;
794
+ overflow: hidden;
795
+ }
796
+ .bangumi-meta {
797
+ display: flex;
798
+ flex-wrap: wrap;
799
+ gap: 4px 10px;
800
+ padding: 0 12px 12px;
801
+ font-size: 12px;
802
+ color: var(--ink-2);
803
+ }
804
+ .bangumi-rate {
805
+ color: var(--accent, var(--ink-2));
806
+ }
807
+
702
808
  /* ---------- 4. Main 通用 ---------- */
703
809
  .site-main {
704
810
  min-height: calc(100vh - var(--header-h) - 200px);
@@ -2218,6 +2324,18 @@ html.dark .ec-collapse__toggle:hover {
2218
2324
  .prose figure img {
2219
2325
  width: 100%;
2220
2326
  }
2327
+ /* 暗色外链图适配(§4.89):rehypeExternalLinks 给外链 img 打 data-external 标记,
2328
+ 暗色下压亮度防白底截图/图表刺眼。--img-adapt-b 由 BaseLayout 按配置注入(关闭时
2329
+ brightness(1) 无操作);.no-adapt 供单图豁免(markdown 内联 HTML class) */
2330
+ html.dark .prose img[data-external],
2331
+ html.dark .moment-content img[data-external] {
2332
+ filter: brightness(var(--img-adapt-b, 1));
2333
+ transition: filter 0.3s ease;
2334
+ }
2335
+ html.dark .prose img[data-external].no-adapt,
2336
+ html.dark .moment-content img[data-external].no-adapt {
2337
+ filter: none;
2338
+ }
2221
2339
  .prose figcaption {
2222
2340
  padding: 8px 14px;
2223
2341
  font-size: 13px;