File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -535,6 +535,11 @@ body {
535535 margin-top : 48px ;
536536}
537537
538+ /* 最新文章与订阅区块之间额外留白 */
539+ .home-section-latest {
540+ padding-bottom : 40px ;
541+ }
542+
538543.home-section-head {
539544 display : flex;
540545 align-items : baseline;
@@ -581,8 +586,8 @@ body {
581586}
582587
583588.home-newsletter {
584- margin-top : 64 px ;
585- border-radius : 18 px ;
589+ margin-top : 96 px ;
590+ border-radius : 22 px ;
586591 background : rgba (0 , 0 , 0 , 0.03 );
587592 border : 1px solid var (--border );
588593}
@@ -592,30 +597,31 @@ body {
592597}
593598
594599.home-newsletter-inner {
595- padding : 44 px 18 px ;
600+ padding : 72 px 40 px 80 px ;
596601 text-align : center;
597602}
598603
599604.home-newsletter-title {
600605 margin : 0 ;
601- font-size : 20 px ;
606+ font-size : 24 px ;
602607 font-weight : 900 ;
608+ letter-spacing : -0.02em ;
603609 color : var (--text );
604610}
605611
606612.home-newsletter-sub {
607- margin : 10 px auto 0 ;
608- max-width : 520 px ;
613+ margin : 18 px auto 0 ;
614+ max-width : 560 px ;
609615 color : var (--muted );
610- font-size : 13 px ;
611- line-height : 1.8 ;
616+ font-size : 14 px ;
617+ line-height : 1.85 ;
612618}
613619
614620.home-newsletter-form {
615- margin : 16 px auto 0 ;
616- max-width : 520 px ;
621+ margin : 32 px auto 0 ;
622+ max-width : 560 px ;
617623 display : flex;
618- gap : 10 px ;
624+ gap : 12 px ;
619625 align-items : center;
620626 justify-content : center;
621627}
@@ -626,8 +632,8 @@ body {
626632 border : 1px solid var (--border );
627633 background : rgba (255 , 255 , 255 , 0.9 );
628634 border-radius : 999px ;
629- padding : 10 px 14px ;
630- font-size : 14 px ;
635+ padding : 14px 20 px ;
636+ font-size : 15 px ;
631637 outline : none;
632638 color : var (--text );
633639}
@@ -646,17 +652,42 @@ body {
646652 background : # 111 ;
647653 color : # fff ;
648654 border-radius : 999px ;
649- padding : 10 px 16 px ;
655+ padding : 14 px 24 px ;
650656 cursor : pointer;
651657 font-weight : 700 ;
652- font-size : 13px ;
658+ font-size : 14px ;
659+ flex-shrink : 0 ;
653660}
654661
655662[data-theme = 'dark' ] .home-newsletter-btn {
656663 background : # e5e7eb ;
657664 color : # 111 ;
658665}
659666
667+ @media (max-width : 680px ) {
668+ .home-newsletter {
669+ margin-top : 72px ;
670+ }
671+
672+ .home-newsletter-inner {
673+ padding : 48px 20px 56px ;
674+ }
675+
676+ .home-newsletter-title {
677+ font-size : 20px ;
678+ }
679+
680+ .home-newsletter-form {
681+ flex-direction : column;
682+ align-items : stretch;
683+ margin-top : 24px ;
684+ }
685+
686+ .home-newsletter-btn {
687+ width : 100% ;
688+ }
689+ }
690+
660691/* 首页:更接近参考图的“封面在上”的文章卡片 */
661692.home-post-card {
662693 border-radius : 16px ;
Original file line number Diff line number Diff line change 4747 </div >
4848 </div >
4949
50- <section class =" home-section" >
50+ <section class =" home-section home-section-latest " >
5151 <div class =" home-section-head" >
5252 <h2 class =" home-section-title" >最新文章</h2 >
5353 <router-link class =" home-section-more" to =" /all" >查看全部 →</router-link >
You can’t perform that action at this time.
0 commit comments