main.css 5.75 KB
Newer Older
fisherdaddy's avatar
fisherdaddy committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
:root {
  --primary-color: #000;
  --secondary-color: #06c;
  --background-color: #fff;
  --text-color: #1d1d1f;
  --card-background: #fbfbfd;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrapper {
  flex: 1;
fisherdaddy's avatar
fisherdaddy committed
29
  padding-top: 44px;
30
  padding-bottom: 20px;
fisherdaddy's avatar
fisherdaddy committed
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
}

header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  padding: 0 5%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 44px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

main {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
fisherdaddy's avatar
fisherdaddy committed
59
  padding: 1rem 1rem 1rem;
fisherdaddy's avatar
fisherdaddy committed
60 61
}

62

fisherdaddy's avatar
fisherdaddy committed
63 64
.tools-section h2 {
  text-align: center;
fisherdaddy's avatar
fisherdaddy committed
65 66 67 68 69
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
fisherdaddy's avatar
fisherdaddy committed
70
  font-weight: 700;
fisherdaddy's avatar
fisherdaddy committed
71
  letter-spacing: -0.02em;
fisherdaddy's avatar
fisherdaddy committed
72 73 74 75 76
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
fisherdaddy's avatar
fisherdaddy committed
77 78 79 80
  gap: 2rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
fisherdaddy's avatar
fisherdaddy committed
81 82 83
}

.tool-card {
fisherdaddy's avatar
fisherdaddy committed
84 85 86 87 88 89
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
fisherdaddy's avatar
fisherdaddy committed
90
  transition: all 0.3s ease;
fisherdaddy's avatar
fisherdaddy committed
91
  display: flex;
fisherdaddy's avatar
fisherdaddy committed
92
  align-items: center;
fisherdaddy's avatar
fisherdaddy committed
93 94
  text-decoration: none;
  height: 100%;
fisherdaddy's avatar
fisherdaddy committed
95 96 97 98
}

.tool-card:hover {
  transform: translateY(-5px);
fisherdaddy's avatar
fisherdaddy committed
99 100
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
fisherdaddy's avatar
fisherdaddy committed
101 102 103
}

.tool-icon {
fisherdaddy's avatar
fisherdaddy committed
104 105 106 107 108 109 110 111 112
  width: 40px; /* 调整图标宽度 */
  height: 40px; /* 调整图标高度 */
  object-fit: contain;
  margin-right: 1rem; /* 缩小图标与文本之间的间距 */
}

.tool-content {
  display: flex;
  flex-direction: column;
fisherdaddy's avatar
fisherdaddy committed
113 114 115
}

.tool-title {
fisherdaddy's avatar
fisherdaddy committed
116
  font-size: 1.4rem;
fisherdaddy's avatar
fisherdaddy committed
117
  font-weight: 600;
fisherdaddy's avatar
fisherdaddy committed
118
  margin: 0;
fisherdaddy's avatar
fisherdaddy committed
119 120 121 122 123
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
fisherdaddy's avatar
fisherdaddy committed
124 125 126
}

.tool-description {
fisherdaddy's avatar
fisherdaddy committed
127 128 129 130 131
  font-size: 1rem;
  color: #4B5563;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
fisherdaddy's avatar
fisherdaddy committed
132 133 134 135 136 137 138 139 140 141 142 143 144 145
}

footer {
  background-color: var(--card-background);
  color: #86868b;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
fisherdaddy's avatar
fisherdaddy committed
146 147 148 149 150
  .tool-card {
    flex-direction: column; /* 在小屏幕上堆叠图标和文本 */
    align-items: center; /* 居中对齐 */
    text-align: center;
    padding: 1rem;
fisherdaddy's avatar
fisherdaddy committed
151 152
  }
  
fisherdaddy's avatar
fisherdaddy committed
153 154 155 156 157 158 159 160 161 162 163
  .tool-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .tool-title {
    margin-bottom: 0.25rem; /* 减少标题与描述之间的间距 */
  }
  
  .tool-description {
    line-height: 1.4; /* 保持一致的行高 */
fisherdaddy's avatar
fisherdaddy committed
164
  }
165 166
}

167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
.language-selector {
  position: relative;
  display: inline-block;
}

.language-button {
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  color: #333;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  list-style-type: none;
  padding: 0;
  margin: 4px 0 0;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  min-width: 120px;
}

.language-dropdown li {
  padding: 8px 16px;
  cursor: pointer;
}

.language-dropdown li:hover {
  background-color: #f5f5f5;
}

@media (max-width: 768px) {
  .language-dropdown {
    right: auto;
    left: 0;
  }
}

fisherdaddy's avatar
fisherdaddy committed
213 214 215 216 217 218 219 220 221 222 223
.footer-separator {
  display: inline-block;
  width: 1px;
  height: 1em;
  background-color: #ccc;
  margin: 0 8px;
  vertical-align: middle;
}

.footer-link {
  text-decoration: none;
fisherdaddy's avatar
fisherdaddy committed
224
  color: inherit;
fisherdaddy's avatar
fisherdaddy committed
225 226 227
}

.footer-link:hover {
fisherdaddy's avatar
fisherdaddy committed
228
  text-decoration: none;
fisherdaddy's avatar
fisherdaddy committed
229 230 231 232 233 234 235 236 237
}

.footer a {
  text-decoration: none;
  color: inherit;
}

.footer a:hover {
  text-decoration: none;
fisherdaddy's avatar
fisherdaddy committed
238 239
}

240
.category-group {
fisherdaddy's avatar
fisherdaddy committed
241
  margin-bottom: 1rem;
242
  margin-top: 6rem;
243 244 245
}

.category-group:first-child {
fisherdaddy's avatar
fisherdaddy committed
246 247 248 249 250 251 252 253 254 255 256 257
  margin-top: 0;
}

/* 添加网格背景效果 */
.tools-section {
  position: relative;
  padding: 1rem 0;
  background: 
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325
}

/* 移动端适配基础设置 */
@media screen and (max-width: 768px) {
  :root {
    font-size: 14px; /* 调整基础字体大小 */
  }

  main {
    padding: 1rem;
    margin-top: 3.5rem; /* 为固定导航栏留出空间 */
  }

  .tools-section {
    padding: 1rem 0;
  }

  .tools-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .tool-card {
    padding: 1.2rem;
  }

  .tool-icon {
    width: 35px;
    height: 35px;
  }

  .tool-title {
    font-size: 1.2rem;
  }

  .tool-description {
    font-size: 0.95rem;
  }
}

/* 针对更小屏幕的优化 */
@media screen and (max-width: 480px) {
  .tools-section h2 {
    font-size: 1.8rem;
  }

  .tool-card {
    padding: 1rem;
  }

  .tool-icon {
    width: 30px;
    height: 30px;
  }
}

/* 针对横屏模式的优化 */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
326
}