styles.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. /* 重置和基础样式 */
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. }
  7. body {
  8. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  9. background: #000000;
  10. color: white;
  11. min-height: 100vh;
  12. overflow-x: hidden;
  13. }
  14. /* 头部样式 */
  15. .header {
  16. text-align: center;
  17. padding: 20px;
  18. margin-bottom: 20px;
  19. }
  20. .site-title {
  21. font-size: 28px;
  22. font-weight: 700;
  23. margin-bottom: 8px;
  24. background: linear-gradient(45deg, #fff, #f0f0f0);
  25. -webkit-background-clip: text;
  26. -webkit-text-fill-color: transparent;
  27. background-clip: text;
  28. }
  29. .tagline {
  30. font-size: 14px;
  31. font-weight: 400;
  32. }
  33. /* 主要内容区域 */
  34. .main-content {
  35. padding: 0 20px;
  36. display: flex;
  37. flex-direction: column;
  38. gap: 16px;
  39. max-width: 400px;
  40. margin: 0 auto;
  41. }
  42. /* 卡片基础样式 */
  43. .card {
  44. border-radius: 16px;
  45. overflow: hidden;
  46. transition: all 0.3s ease;
  47. cursor: pointer;
  48. margin-bottom: 16px;
  49. position: relative;
  50. }
  51. .status-dot {
  52. margin: 58px 0 0 10px;
  53. position: absolute;
  54. top: 8px;
  55. left: 8px;
  56. width: 8px;
  57. height: 8px;
  58. border-radius: 50%;
  59. z-index: 10;
  60. box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  61. }
  62. .status-dot.red {
  63. background: #ff4757;
  64. box-shadow: 0 0 10px rgba(255, 71, 87, 0.6);
  65. }
  66. .status-dot.green {
  67. background: #2ed573;
  68. box-shadow: 0 0 10px rgba(46, 213, 115, 0.6);
  69. }
  70. .card:hover {
  71. transform: translateY(-2px);
  72. box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  73. }
  74. .card-link {
  75. text-decoration: none;
  76. color: inherit;
  77. display: block;
  78. }
  79. .card-img {
  80. width: 100%;
  81. height: auto;
  82. display: block;
  83. object-fit: contain;
  84. object-position: center;
  85. max-width: 100%;
  86. max-height: none;
  87. }
  88. /* 响应式设计 */
  89. @media (max-width: 480px) {
  90. .main-content {
  91. padding: 0 16px;
  92. }
  93. .site-title {
  94. font-size: 24px;
  95. }
  96. }
  97. /* 滚动条样式 */
  98. ::-webkit-scrollbar {
  99. width: 6px;
  100. }
  101. ::-webkit-scrollbar-track {
  102. background: rgba(255, 255, 255, 0.1);
  103. }
  104. ::-webkit-scrollbar-thumb {
  105. background: rgba(255, 255, 255, 0.3);
  106. border-radius: 3px;
  107. }
  108. ::-webkit-scrollbar-thumb:hover {
  109. background: rgba(255, 255, 255, 0.5);
  110. }