blob: e5529d30af80f2ca48d59adb604921902e30d765 [file] [log] [blame]
ym923ed3de702025-06-09 20:10:16 +08001@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
2
3.comment-card {
4 max-width: 700px;
5 margin: 20px auto;
6 border-radius: 8px;
7 box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
8 background: #fff;
9 padding: 16px;
10}
11
12.comment-textarea {
13 border-radius: 6px;
14 resize: none;
15 font-size: 16px;
16}
17
18.text-right {
19 text-align: right;
20}
21
22.mt-2 {
23 margin-top: 0.5rem;
24}
25
26.mt-6 {
27 margin-top: 1.5rem;
28}
29
30.comment-time {
31 font-size: 12px;
32 color: #888;
33 margin-left: 8px;
34 white-space: nowrap;
35}
36
37.comment-username {
38 font-weight: 600;
39 color: #1890ff;
40 user-select: none;
41}
42
43.comment-content {
44 font-size: 14px;
45 line-height: 1.5;
46 color: #333;
47 white-space: pre-wrap;
48}
49
50/* 头像带蓝色边框 */
51.avatar-with-border {
52 border: 2px solid #1890ff !important;
53 border-radius: 50% !important;
54}
55
56
57
58body {
59 font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
60 background-color: #fffaf5;
61}
62
63/* 全局动画效果 */
64.transition {
65 transition: all 0.3s ease;
66}
67
68/* 卡片阴影效果 */
69.shadow-lg {
70 box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
71}
72
73.shadow-md {
74 box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
75}
76
77/* 圆角 */
78.rounded-xl {
79 border-radius: 1rem;
80}
81
82.rounded-lg {
83 border-radius: 0.75rem;
84}
85
86/* 渐变背景 */
87.bg-gradient-to-r {
88 background-size: 200% auto;
89 transition: background-position 0.5s ease;
90}
91
92.bg-gradient-to-r:hover {
93 background-position: right center;
94}
95
96/* 表单输入框动画 */
97input:focus,
98textarea:focus {
99 transform: translateY(-1px);
100}
101
102/* 卡片悬停效果 */
103.bg-white:hover {
104 transform: translateY(-3px);
105}
106
107/* 响应式调整 */
108@media (max-width: 768px) {
109 .text-xl {
110 font-size: 1.25rem;
111 }
112
113 .text-2xl {
114 font-size: 1.5rem;
115 }
116
117 .p-6 {
118 padding: 1.25rem;
119 }
120
121 .p-12 {
122 padding: 2rem;
123 }
124
125 .grid-cols-2 {
126 grid-template-columns: 1fr;
127 }
128}