blob: b6fa9d1a91e56b92e92c2e12b46d8a4ecebd5883 [file] [log] [blame]
刘嘉昕07fee5f2025-06-09 17:18:47 +08001/* 加载状态 */
2.loading-container {
3 height: 16rem; /* 64 x 4 */
4 display: flex;
5 justify-content: center;
6 align-items: center;
7}
8
9.spinner {
10 border: 4px solid #f3f3f3;
11 border-top: 4px solid #f59e0b; /* 橙黄色 */
12 border-radius: 50%;
13 width: 48px;
14 height: 48px;
15 animation: spin 1s linear infinite;
16}
17
18@keyframes spin {
19 to { transform: rotate(360deg); }
20}
21
22/* 容器和网格 */
23.torrents-container {
24 padding: 16px;
25 background-color: #f9fafb;
26 min-height: 100vh;
27}
28
29.torrents-grid {
30 display: grid;
31 /* grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); */
32 grid-template-columns: repeat(4, 1fr); /* 固定每行4列 */
33 gap: 24px;
34}
35
36.torrents1-grid {
37 display: grid;
38 grid-template-columns: repeat(4, 1fr); /* 固定每行4列 */
39 gap: 24px;
40}
41
42
43/* 卡片样式 */
44.torrent-card {
45 background-color: white;
46 border-radius: 8px;
47 box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
48 display: flex;
49 flex-direction: column;
50 overflow: hidden;
51 transition: box-shadow 0.3s ease;
52}
53
54.torrent-card:hover {
55 box-shadow: 0 6px 16px rgb(0 0 0 / 0.15);
56}
57
58/* 封面区域 */
59.cover {
60 height: 160px;
61 overflow: hidden;
62 background-color: #e5e7eb;
63 display: flex;
64 justify-content: center;
65 align-items: center;
66}
67
68.cover-image {
69 width: 100%;
70 height: 100%;
71 object-fit: cover;
72}
73
74.no-cover {
75 color: #9ca3af;
76 font-size: 14px;
77}
78
79/* 信息区域 */
80.info {
81 padding: 16px;
82 flex-grow: 1;
83 display: flex;
84 flex-direction: column;
85}
86
87.title {
88 font-size: 18px;
89 font-weight: 600;
90 color: #d97706; /* 橙色 */
91 margin: 0 0 6px 0;
92 white-space: nowrap;
93 overflow: hidden;
94 text-overflow: ellipsis;
95}
96
97.description {
98 font-size: 14px;
99 color: #6b7280;
100 margin: 0 0 12px 0;
101 height: 36px; /* 限制两行高度 */
102 overflow: hidden;
103 text-overflow: ellipsis;
104}
105
106.details {
107 font-size: 12px;
108 color: #6b7280;
109 display: flex;
110 flex-wrap: wrap;
111 gap: 8px;
112 margin-bottom: 16px;
113}
114
115.details span {
116 white-space: nowrap;
117}
118
119/* 操作按钮 */
120.actions {
121 margin-top: auto;
122 display: flex;
123 gap: 12px;
124}
125
126.btn {
127 flex: 1;
128 padding: 8px 12px;
129 border-radius: 6px;
130 font-size: 14px;
131 font-weight: 600;
132 cursor: pointer;
133 text-align: center;
134 text-decoration: none;
135 user-select: none;
136 transition: background-color 0.3s ease;
137 border: none;
138}
139
140.btn-download {
141 background-color: #f97316; /* 明亮橙色 */
142 color: white;
143}
144
145.btn-download:hover {
146 background-color: #ea580c; /* 深橙 */
147}
148
149.btn-detail {
150 background-color: #e5e7eb;
151 color: #374151;
152 display: inline-flex;
153 justify-content: center;
154 align-items: center;
155}
156
157.btn-detail:hover {
158 background-color: #d1d5db;
159}
160
161/* 没有数据提示 */
162.no-data {
163 text-align: center;
164 color: #6b7280;
165 font-size: 18px;
166 margin-top: 80px;
167}
168