bing.css 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. /* 头部分 */
  2. #head {
  3. position: fixed;
  4. top: 0;
  5. left: 0;
  6. width: 100%;
  7. height: 4rem;
  8. display: flex;
  9. align-items: center;
  10. justify-content: space-between;
  11. backdrop-filter: blur(10px);
  12. background-color: #ffffff78;
  13. z-index: 99;
  14. }
  15. #head-img-div {
  16. height: 100%;
  17. display: flex;
  18. justify-content: flex-start;
  19. align-items: center;
  20. }
  21. #head-img-div>img {
  22. height: 100%;
  23. }
  24. #head-img-div-h2-img>* {
  25. margin: 0;
  26. }
  27. #head-li-div {
  28. margin-right: 2rem;
  29. }
  30. /* 背景*/
  31. #background {
  32. position: fixed;
  33. top: 0;
  34. left: 0;
  35. width: 100%;
  36. height: 100%;
  37. z-index: -1;
  38. background: repeating-linear-gradient(359deg, rgb(182 196 255) 0%, rgb(207 225 255 / 78%) 100%);
  39. transition: filter 1s;
  40. }
  41. #background.a {
  42. filter: hue-rotate(10deg);
  43. }
  44. #background.b {
  45. filter: hue-rotate(-5deg);
  46. }
  47. #background.c {
  48. filter: hue-rotate(-20deg);
  49. }
  50. /* 尾部分 */
  51. #tail {
  52. position: fixed;
  53. left: 0;
  54. bottom: 0;
  55. width: 100%;
  56. height: 7rem;
  57. display: flex;
  58. justify-content: center;
  59. backdrop-filter: blur(10px);
  60. background-color: #ffffff78;
  61. flex-direction: column-reverse;
  62. align-items: center;
  63. z-index: 99;
  64. }
  65. #SearchSuggestions {
  66. position: fixed;
  67. top: -3rem;
  68. display: flex;
  69. flex-wrap: nowrap;
  70. flex-direction: row;
  71. justify-content: center;
  72. align-items: center;
  73. width: 100%;
  74. transition: opacity 0.2s
  75. }
  76. #SearchSuggestions>a {
  77. backdrop-filter: blur(10px);
  78. background-color: #ffffff82;
  79. border-radius: 2rem;
  80. padding: 0.5rem;
  81. font-size: 0.9rem;
  82. margin: 0.2rem;
  83. white-space: nowrap;
  84. text-overflow: ellipsis;
  85. overflow: hidden;
  86. transition: flex 0.5s;
  87. }
  88. #SearchSuggestions>a:hover {
  89. cursor: pointer;
  90. background-color: #ffffff;
  91. flex: none;
  92. }
  93. #tail-in {
  94. display: flex;
  95. width: 80%;
  96. align-items: center;
  97. justify-content: center;
  98. height: 80%;
  99. }
  100. #restart:hover ,
  101. #restartNewChat:hover
  102. {
  103. background-color: #ffffff;
  104. cursor: pointer;
  105. }
  106. #restart ,
  107. #restartNewChat
  108. {
  109. border: 0;
  110. border-radius: 1.5rem;
  111. background-color: #ffffff9e;
  112. height: 100%;
  113. font-size: 0.8rem;
  114. transition: all 0.5s;
  115. overflow: hidden;
  116. white-space: normal;
  117. }
  118. #restart {
  119. width: 0;
  120. margin: 0;
  121. padding: 0;
  122. opacity: 0;
  123. }
  124. body:has(.my) #restart {
  125. width: 5rem;
  126. margin-right: 0.5rem;
  127. padding: 0;
  128. opacity: 1;
  129. }
  130. #restartNewChat{
  131. width: 5rem;
  132. margin-right: 0.5rem;
  133. }
  134. #restartNewChat.onShow{
  135. width: 0;
  136. margin: 0;
  137. padding: 0;
  138. opacity: 0;
  139. }
  140. #send {
  141. border: 0;
  142. margin: 0 1rem 1rem 0;
  143. border-radius: 2rem;
  144. background-color: #005fff38;
  145. height: 1.8rem;
  146. font-size: 0.8rem;
  147. cursor: pointer;
  148. min-width: 3rem;
  149. transition: all 0.5s;
  150. }
  151. #send:hover {
  152. background-color: #005fff80;
  153. }
  154. #input {
  155. border: none;
  156. resize: none;
  157. outline: none;
  158. width: 100%;
  159. background-color: #ffffff00;
  160. margin: 1rem 0 1rem 1rem;
  161. height: -webkit-fill-available;
  162. }
  163. #input:focus-visible {
  164. border: 0;
  165. }
  166. #input-div {
  167. border-radius: 1.5rem;
  168. flex: 1;
  169. height: 100%;
  170. background-color: #ffffff;
  171. margin: 0 0;
  172. display: flex;
  173. flex-direction: row;
  174. align-items: flex-end;
  175. transition: all 0.5s;
  176. }
  177. /* 页面部分 */
  178. body {
  179. overflow-x: hidden;
  180. }
  181. #body-bottom {
  182. height: 15rem;
  183. width: 100%;
  184. }
  185. /* 聊天选项部分 */
  186. #chatTypeDiv {
  187. display: flex;
  188. flex-direction: row;
  189. justify-content: center;
  190. align-items: center;
  191. flex-wrap: nowrap;
  192. margin-bottom: 7rem;
  193. transition: all 0.5s;
  194. }
  195. #chatTypeDiv>.chatTypeChose {
  196. background-color: #ffffffcc;
  197. border-radius: 2rem;
  198. width: 9rem;
  199. height: 4rem;
  200. margin: 1rem 0.3rem;
  201. display: flex;
  202. flex-direction: column;
  203. align-items: center;
  204. justify-content: center;
  205. border: 0.5rem solid #ffffffcc;
  206. cursor: pointer;
  207. }
  208. #chatTypeDiv>.chatTypeChose>p {
  209. margin: 0;
  210. text-align: center;
  211. }
  212. #chatTypeDiv>.chatTypeChose>h3 {
  213. margin: 0;
  214. text-align: center;
  215. }
  216. #chatTypeChoseCreate.Chose {
  217. background-color: #904887;
  218. color: white;
  219. cursor: default;
  220. }
  221. #chatTypeChoseBalance.Chose {
  222. background-color: #2870EA;
  223. color: white;
  224. cursor: default;
  225. }
  226. #chatTypeChoseAccurate.Chose {
  227. background-color: #006880;
  228. color: white;
  229. cursor: default;
  230. }
  231. /* 聊天部分,在页面内 */
  232. @keyframes acceptMeaaage {
  233. from {
  234. margin-top: 1em;
  235. margin-left: -4em;
  236. opacity: 0;
  237. }
  238. to {}
  239. }
  240. @keyframes sendMeaaage {
  241. from {
  242. margin-top: 1em;
  243. margin-right: -4em;
  244. opacity: 0;
  245. }
  246. to {}
  247. }
  248. .bing,
  249. .my {
  250. margin-bottom: 2rem;
  251. }
  252. .bing {
  253. display: grid;
  254. justify-items: start;
  255. }
  256. .bing>* {
  257. animation: acceptMeaaage 0.5s;
  258. }
  259. .my>* {
  260. animation: sendMeaaage 0.5s;
  261. }
  262. .my {
  263. text-align: right;
  264. font-size: 1.3rem;
  265. }
  266. .InternalSearchQuery,
  267. .InternalLoaderMessage {
  268. margin-left: 1rem;
  269. font-size: 1rem;
  270. }
  271. .InternalSearchQuery>p,
  272. .InternalLoaderMessage>p {
  273. margin: 0;
  274. margin-bottom: 1rem;
  275. }
  276. .adaptiveCardsFatherDIV,
  277. .my>.bobo {
  278. display: inline-block;
  279. background-color: #ffffff;
  280. border-radius: 1rem;
  281. padding: 1rem 1rem;
  282. max-width: 85vw;
  283. margin-bottom: 1rem;
  284. text-align: left;
  285. }
  286. .adaptiveCardsFatherDIV .throttling {
  287. text-align: end;
  288. font-size: 0.4rem;
  289. margin-top: 0.5rem;
  290. margin-bottom: -0.8rem;
  291. border-top: 1px solid #0000005c;
  292. }
  293. .bing>.sourceAttributions {
  294. font-size: 0.9rem;
  295. max-width: 85vw;
  296. margin: 0;
  297. margin-bottom: 1rem;
  298. display: inline-flex;
  299. flex-direction: row;
  300. flex-wrap: nowrap;
  301. align-items: center;
  302. background-color: #ffffff57;
  303. border-radius: 2rem;
  304. padding: 0.5rem;
  305. }
  306. .bing:has(.sourceAttributions) .adaptiveCardsFatherDIV {
  307. margin-bottom: 1em;
  308. }
  309. .bing>.sourceAttributions>a {
  310. display: inline-block;
  311. background-color: #ffffff73;
  312. border-radius: 1rem;
  313. padding: 0.5rem;
  314. text-overflow: ellipsis;
  315. overflow: hidden;
  316. white-space: nowrap;
  317. margin: 0.1rem;
  318. color: #000000;
  319. text-decoration: none;
  320. transition: flex 0.5s;
  321. }
  322. .bing>.sourceAttributions>a:hover {
  323. background-color: #ffffffb3;
  324. flex: none;
  325. }
  326. /* 上标 */
  327. #chat .superscript {
  328. display: inline-block;
  329. vertical-align: super;
  330. border: 0.1rem solid #0969da;
  331. border-radius: 1em;
  332. min-width: 1em;
  333. text-align: center;
  334. line-height: 1em;
  335. font-size: small;
  336. color: #0969da;
  337. }
  338. #chat .superscript:hover {
  339. background-color: #00000024;
  340. }
  341. /*暂时不知道如何解析的渲染卡片请求*/
  342. .RenderCardRequest {
  343. border-radius: 1em;
  344. background-color: white;
  345. overflow: auto;
  346. padding: 1em;
  347. width: 85vw;
  348. max-width: 1100px;
  349. }
  350. .RenderCardRequest>iframe {
  351. min-width: 768px;
  352. width: 100%;
  353. height: 602px;
  354. border: 0;
  355. }
  356. /* 画图部分 */
  357. .GenerateContentQuery {
  358. background-color: #ffffff;
  359. border-radius: 1rem;
  360. max-width: 85%;
  361. margin-bottom: 1rem;
  362. text-align: center;
  363. font-size: 1rem;
  364. padding: 1rem;
  365. overflow: hidden;
  366. display: inline-table;
  367. }
  368. .GenerateContentQuery>img {
  369. max-width: 24%;
  370. margin: 0.5%;
  371. transition: all 0.8s;
  372. cursor: pointer;
  373. }
  374. .GenerateContentQuery>img:hover {
  375. margin: 0.2% 0.8% 0.8% 0.2%;
  376. box-shadow: #0000007a 2px 3px 5px 0px;
  377. transition: all 0.3s;
  378. }
  379. /* 错误部分 */
  380. #chat .error {
  381. text-align: center;
  382. color: red;
  383. }
  384. .NoPower {
  385. text-align: center;
  386. color: #ff6d00;
  387. cursor: pointer;
  388. margin: 1rem;
  389. text-decoration: underline;
  390. }
  391. /* 用于适配不同设备 */
  392. /* pc */
  393. :root {
  394. font-size: 1rem;
  395. }
  396. div.markdown-body {
  397. font-size: 1rem;
  398. overflow: auto;
  399. }
  400. /* 窄窗口 */
  401. @media screen and (max-width:550px) {
  402. #tail-in:has(#input:focus-visible) #restart,
  403. #tail-in:has(#input:hover) #restart,
  404. #tail-in:has(#input:focus-visible) #restartNewChat,
  405. #tail-in:has(#input:hover) #restartNewChat {
  406. width: 0;
  407. margin: 0;
  408. padding: 0;
  409. opacity: 0;
  410. }
  411. .GenerateContentQuery>img {
  412. max-width: 49%;
  413. width: 49%;
  414. }
  415. #tail-in {
  416. width: 90%;
  417. }
  418. .bing>.sourceAttributions {
  419. flex-wrap: wrap;
  420. }
  421. }
  422. /*手机 css*/
  423. @media screen and (orientation:portrait) and (max-device-width:800px) and (max-device-height:1000px) {
  424. .InternalSearchQuery,
  425. .InternalLoaderMessage {
  426. width: 90%;
  427. }
  428. .InternalSearchQuery>p,
  429. .InternalLoaderMessage>p {
  430. font-size: 1rem;
  431. }
  432. .bing>.sourceAttributions {
  433. max-width: 88vw;
  434. flex-wrap: wrap;
  435. }
  436. .adaptiveCardsFatherDIV,
  437. .my>.bobo {
  438. max-width: 88vw;
  439. }
  440. #tail-in {
  441. width: 90%;
  442. }
  443. #restart {
  444. font-size: 1em;
  445. }
  446. #input {
  447. font-size: 1em;
  448. }
  449. .GenerateContentQuery>img {
  450. max-width: 49%;
  451. width: 49%;
  452. }
  453. #tail-in:has(#input:focus-visible) #restart,
  454. #tail-in:has(#input:hover) #restart,
  455. #tail-in:has(#input:focus-visible) #restartNewChat,
  456. #tail-in:has(#input:hover) #restartNewChat {
  457. width: 0;
  458. margin: 0;
  459. padding: 0;
  460. opacity: 0;
  461. }
  462. /* 聊天部分,在页面内 */
  463. @keyframes acceptMeaaage {
  464. from {
  465. margin-top: 1em;
  466. margin-left: 0em;
  467. opacity: 0;
  468. }
  469. to {}
  470. }
  471. @keyframes sendMeaaage {
  472. from {
  473. margin-top: 1em;
  474. margin-right: 0em;
  475. opacity: 0;
  476. }
  477. to {}
  478. }
  479. }