styles.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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. body.index-page {
  90. display: flex;
  91. align-items: center;
  92. justify-content: center;
  93. }
  94. .index-page .container {
  95. text-align: center;
  96. width: 100%;
  97. max-width: 400px;
  98. padding: 20px;
  99. }
  100. .index-page .site-title {
  101. font-size: 28px;
  102. font-weight: 700;
  103. margin-bottom: 40px;
  104. color: white;
  105. background: none;
  106. -webkit-text-fill-color: white;
  107. }
  108. .index-page .button-container {
  109. display: flex;
  110. flex-direction: column;
  111. gap: 20px;
  112. width: 100%;
  113. }
  114. .index-page .region-button {
  115. display: flex;
  116. align-items: center;
  117. padding: 16px 20px;
  118. border-radius: 12px;
  119. text-decoration: none;
  120. color: white;
  121. font-weight: 500;
  122. font-size: 16px;
  123. transition: all 0.3s ease;
  124. position: relative;
  125. overflow: hidden;
  126. }
  127. .index-page .region-button:hover {
  128. transform: translateY(-2px);
  129. box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  130. }
  131. .index-page .japan-button {
  132. background: linear-gradient(90deg, #4A90E2, #9B59B6);
  133. }
  134. .index-page .vietnam-button {
  135. background: linear-gradient(90deg, #2ECC71, #1ABC9C);
  136. }
  137. .index-page .flag-icon {
  138. width: 32px;
  139. height: 32px;
  140. margin-right: 16px;
  141. display: flex;
  142. align-items: center;
  143. justify-content: center;
  144. }
  145. .index-page .flag-circle {
  146. width: 24px;
  147. height: 24px;
  148. border-radius: 50%;
  149. position: relative;
  150. }
  151. .index-page .japan-flag .flag-circle {
  152. background: white;
  153. }
  154. .index-page .japan-flag .flag-center {
  155. position: absolute;
  156. top: 50%;
  157. left: 50%;
  158. transform: translate(-50%, -50%);
  159. width: 12px;
  160. height: 12px;
  161. background: #DC143C;
  162. border-radius: 50%;
  163. }
  164. .index-page .vietnam-flag .flag-circle {
  165. background: #DC143C;
  166. }
  167. .index-page .vietnam-flag .flag-star {
  168. position: absolute;
  169. top: 50%;
  170. left: 50%;
  171. transform: translate(-50%, -50%);
  172. width: 12px;
  173. height: 12px;
  174. background: #FFD700;
  175. clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  176. }
  177. .index-page .region-text {
  178. flex: 1;
  179. text-align: left;
  180. font-weight: 500;
  181. }
  182. .index-page .go-button {
  183. background: rgba(255, 255, 255, 0.2);
  184. color: white;
  185. padding: 8px 16px;
  186. border-radius: 8px;
  187. font-size: 14px;
  188. font-weight: 600;
  189. backdrop-filter: blur(10px);
  190. border: 1px solid rgba(255, 255, 255, 0.1);
  191. }
  192. /* 响应式设计 */
  193. @media (max-width: 480px) {
  194. .main-content {
  195. padding: 0 16px;
  196. }
  197. .site-title {
  198. font-size: 24px;
  199. }
  200. .index-page .container {
  201. padding: 16px;
  202. }
  203. .index-page .site-title {
  204. font-size: 24px;
  205. margin-bottom: 30px;
  206. }
  207. .index-page .region-button {
  208. padding: 14px 16px;
  209. font-size: 14px;
  210. }
  211. .index-page .flag-icon {
  212. width: 28px;
  213. height: 28px;
  214. margin-right: 12px;
  215. }
  216. .index-page .flag-circle {
  217. width: 20px;
  218. height: 20px;
  219. }
  220. .index-page .japan-flag .flag-center {
  221. width: 10px;
  222. height: 10px;
  223. }
  224. .index-page .vietnam-flag .flag-star {
  225. width: 10px;
  226. height: 10px;
  227. }
  228. }
  229. /* 滚动条样式 */
  230. ::-webkit-scrollbar {
  231. width: 6px;
  232. }
  233. ::-webkit-scrollbar-track {
  234. background: rgba(255, 255, 255, 0.1);
  235. }
  236. ::-webkit-scrollbar-thumb {
  237. background: rgba(255, 255, 255, 0.3);
  238. border-radius: 3px;
  239. }
  240. ::-webkit-scrollbar-thumb:hover {
  241. background: rgba(255, 255, 255, 0.5);
  242. }