styles.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788
  1. /* BEX 条款页面样式 - 严格参照Figma设计图 */
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. }
  7. body {
  8. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  9. line-height: 1.6;
  10. color: #e6e6e6;
  11. background-color: #0d0d0d;
  12. padding: 0;
  13. max-width: 100%;
  14. overflow-x: hidden;
  15. -webkit-font-smoothing: antialiased;
  16. -moz-osx-font-smoothing: grayscale;
  17. }
  18. .container {
  19. max-width: 1300px;
  20. margin: 0 auto;
  21. background-color: #0d0d0d;
  22. border-radius: 0;
  23. box-shadow: none;
  24. padding: 0;
  25. position: relative;
  26. }
  27. /* 头部样式 - 深色背景 */
  28. .header {
  29. text-align: left;
  30. margin-bottom: 0;
  31. padding: 32px 24px;
  32. border-bottom: 1px solid #1f1f1f;
  33. background-color: #0d0d0d;
  34. }
  35. .brand {
  36. display: flex;
  37. align-items: center;
  38. justify-content: flex-start;
  39. gap: 12px;
  40. margin-bottom: 24px;
  41. }
  42. .brand-logo {
  43. width: 40px;
  44. height: 40px;
  45. background: linear-gradient(135deg, #f0b90b 0%, #f8d12f 100%);
  46. border-radius: 8px;
  47. display: flex;
  48. align-items: center;
  49. justify-content: center;
  50. color: #0d0d0d;
  51. font-weight: bold;
  52. font-size: 18px;
  53. }
  54. .brand-name {
  55. font-size: 18px;
  56. font-weight: 600;
  57. color: #ffffff;
  58. }
  59. .page-title {
  60. font-size: 24px;
  61. color: #ffffff;
  62. margin-bottom: 8px;
  63. font-weight: 700;
  64. }
  65. .update-time {
  66. color: #888888;
  67. font-size: 13px;
  68. margin-bottom: 12px;
  69. }
  70. .page-description {
  71. color: #aaaaaa;
  72. font-size: 14px;
  73. max-width: 100%;
  74. line-height: 1.6;
  75. }
  76. /* 内容区域样式 */
  77. .content {
  78. font-size: 14px;
  79. color: #cccccc;
  80. padding: 24px;
  81. max-width: 100%;
  82. margin: 0 auto;
  83. }
  84. .section {
  85. margin-bottom: 32px;
  86. background-color: #141414;
  87. border-radius: 12px;
  88. padding: 20px;
  89. border: 1px solid #1f1f1f;
  90. }
  91. .section-title {
  92. font-size: 16px;
  93. font-weight: 600;
  94. color: #ffffff;
  95. margin-bottom: 16px;
  96. padding-bottom: 12px;
  97. border-bottom: 1px solid #1f1f1f;
  98. }
  99. .section-content {
  100. margin-left: 0;
  101. }
  102. .paragraph {
  103. margin-bottom: 16px;
  104. text-align: justify;
  105. color: #b0b0b0;
  106. line-height: 1.8;
  107. font-size: 14px;
  108. }
  109. .paragraph:last-child {
  110. margin-bottom: 0;
  111. }
  112. .sub-section {
  113. margin-left: 16px;
  114. margin-bottom: 16px;
  115. }
  116. .sub-title {
  117. font-weight: 600;
  118. color: #e0e0e0;
  119. margin-bottom: 8px;
  120. font-size: 14px;
  121. }
  122. /* 列表样式 */
  123. .list {
  124. margin-left: 24px;
  125. margin-bottom: 16px;
  126. }
  127. .list-item {
  128. margin-bottom: 8px;
  129. position: relative;
  130. color: #b0b0b0;
  131. line-height: 1.7;
  132. }
  133. .list-item:before {
  134. content: "•";
  135. color: #f0b90b;
  136. font-weight: bold;
  137. position: absolute;
  138. left: -16px;
  139. font-size: 14px;
  140. }
  141. .numbered-list {
  142. margin-left: 24px;
  143. margin-bottom: 16px;
  144. counter-reset: item;
  145. }
  146. .numbered-item {
  147. margin-bottom: 8px;
  148. position: relative;
  149. color: #b0b0b0;
  150. line-height: 1.7;
  151. }
  152. .numbered-item:before {
  153. counter-increment: item;
  154. content: counter(item) ".";
  155. color: #f0b90b;
  156. font-weight: bold;
  157. position: absolute;
  158. left: -20px;
  159. font-size: 13px;
  160. }
  161. /* 强调文本 - 深色主题 */
  162. .important {
  163. background-color: #1a1500;
  164. border-left: 4px solid #f0b90b;
  165. padding: 16px;
  166. margin: 20px 0;
  167. border-radius: 0 8px 8px 0;
  168. }
  169. .important p {
  170. color: #d4a50a;
  171. font-size: 13px;
  172. line-height: 1.6;
  173. }
  174. .warning {
  175. background-color: #1a0a0a;
  176. border-left: 4px solid #ff4d4f;
  177. padding: 16px;
  178. margin: 20px 0;
  179. border-radius: 0 8px 8px 0;
  180. }
  181. .warning p {
  182. color: #ff7875;
  183. font-size: 13px;
  184. line-height: 1.6;
  185. }
  186. .note {
  187. background-color: #0a1a1a;
  188. border-left: 4px solid #52c41a;
  189. padding: 16px;
  190. margin: 20px 0;
  191. border-radius: 0 8px 8px 0;
  192. }
  193. .note p {
  194. color: #73d13d;
  195. font-size: 13px;
  196. line-height: 1.6;
  197. }
  198. /* 底部导航 */
  199. .footer {
  200. margin-top: 40px;
  201. padding: 32px 24px;
  202. border-top: 1px solid #1f1f1f;
  203. text-align: center;
  204. background-color: #0d0d0d;
  205. }
  206. .back-button {
  207. display: inline-flex;
  208. align-items: center;
  209. justify-content: center;
  210. background: linear-gradient(135deg, #f0b90b 0%, #f8d12f 100%);
  211. color: #0d0d0d;
  212. padding: 12px 32px;
  213. border-radius: 24px;
  214. text-decoration: none;
  215. font-weight: 600;
  216. transition: all 0.3s ease;
  217. border: none;
  218. cursor: pointer;
  219. font-size: 14px;
  220. }
  221. .back-button:hover {
  222. transform: translateY(-2px);
  223. box-shadow: 0 4px 20px rgba(240, 185, 11, 0.3);
  224. }
  225. .back-button i {
  226. margin-right: 8px;
  227. font-size: 13px;
  228. }
  229. .copyright {
  230. margin-top: 24px;
  231. color: #666666;
  232. font-size: 12px;
  233. line-height: 1.8;
  234. }
  235. .copyright p {
  236. margin-bottom: 4px;
  237. }
  238. .copyright p:last-child {
  239. margin-bottom: 0;
  240. }
  241. /* 响应式设计 */
  242. @media (max-width: 768px) {
  243. body {
  244. padding: 0;
  245. }
  246. .container {
  247. padding: 0;
  248. border-radius: 0;
  249. }
  250. .header {
  251. padding: 24px 16px;
  252. }
  253. .page-title {
  254. font-size: 22px;
  255. }
  256. .page-description {
  257. font-size: 13px;
  258. }
  259. .content {
  260. padding: 16px;
  261. font-size: 13px;
  262. }
  263. .section {
  264. padding: 16px;
  265. margin-bottom: 24px;
  266. }
  267. .section-title {
  268. font-size: 15px;
  269. }
  270. .section-content {
  271. margin-left: 0;
  272. }
  273. .sub-section {
  274. margin-left: 12px;
  275. }
  276. .list {
  277. margin-left: 20px;
  278. }
  279. .numbered-list {
  280. margin-left: 20px;
  281. }
  282. .footer {
  283. padding: 24px 16px;
  284. }
  285. }
  286. @media (max-width: 480px) {
  287. body {
  288. padding: 0;
  289. }
  290. .container {
  291. padding: 0;
  292. }
  293. .header {
  294. padding: 20px 12px;
  295. }
  296. .brand-logo {
  297. width: 36px;
  298. height: 36px;
  299. font-size: 16px;
  300. }
  301. .brand-name {
  302. font-size: 16px;
  303. }
  304. .page-title {
  305. font-size: 20px;
  306. }
  307. .content {
  308. padding: 12px;
  309. font-size: 12px;
  310. }
  311. .section {
  312. padding: 12px;
  313. margin-bottom: 16px;
  314. border-radius: 8px;
  315. }
  316. .section-title {
  317. font-size: 14px;
  318. padding-bottom: 8px;
  319. }
  320. .paragraph {
  321. font-size: 12px;
  322. line-height: 1.7;
  323. }
  324. .back-button {
  325. width: 100%;
  326. text-align: center;
  327. padding: 12px 20px;
  328. }
  329. .footer {
  330. padding: 20px 12px;
  331. }
  332. }
  333. /* 目录导航 - 深色主题 */
  334. .toc {
  335. background-color: #141414;
  336. border-radius: 12px;
  337. padding: 20px;
  338. margin-bottom: 24px;
  339. border: 1px solid #1f1f1f;
  340. }
  341. .toc-title {
  342. font-size: 16px;
  343. font-weight: 600;
  344. color: #ffffff;
  345. margin-bottom: 12px;
  346. }
  347. .toc-list {
  348. list-style: none;
  349. margin-left: 0;
  350. }
  351. .toc-item {
  352. margin-bottom: 8px;
  353. }
  354. .toc-link {
  355. color: #999999;
  356. text-decoration: none;
  357. transition: all 0.2s;
  358. display: block;
  359. padding: 6px 0;
  360. font-size: 13px;
  361. border-radius: 4px;
  362. }
  363. .toc-link:hover {
  364. color: #f0b90b;
  365. padding-left: 8px;
  366. }
  367. /* 高亮当前阅读部分 */
  368. :target {
  369. background-color: rgba(240, 185, 11, 0.05);
  370. padding: 8px;
  371. border-radius: 6px;
  372. animation: highlight 1.5s ease;
  373. }
  374. @keyframes highlight {
  375. 0% { background-color: transparent; }
  376. 30% { background-color: rgba(240, 185, 11, 0.1); }
  377. 100% { background-color: rgba(240, 185, 11, 0.05); }
  378. }
  379. /* 阅读进度指示器 */
  380. .reading-progress {
  381. position: fixed;
  382. top: 0;
  383. left: 0;
  384. width: 0%;
  385. height: 3px;
  386. background: linear-gradient(90deg, #f0b90b, #f8d12f);
  387. z-index: 1000;
  388. transition: width 0.15s ease-out;
  389. }
  390. /* 表格样式 - 深色主题 */
  391. .table-container {
  392. overflow-x: auto;
  393. margin: 16px 0;
  394. border-radius: 8px;
  395. border: 1px solid #1f1f1f;
  396. }
  397. .data-table {
  398. width: 100%;
  399. border-collapse: collapse;
  400. }
  401. .data-table th,
  402. .data-table td {
  403. padding: 12px 14px;
  404. text-align: left;
  405. border-bottom: 1px solid #1f1f1f;
  406. }
  407. .data-table th {
  408. background-color: #1a1a1a;
  409. font-weight: 600;
  410. color: #e0e0e0;
  411. font-size: 13px;
  412. }
  413. .data-table td {
  414. color: #b0b0b0;
  415. font-size: 13px;
  416. }
  417. .data-table tr:hover td {
  418. background-color: #1a1a1a;
  419. }
  420. .data-table tr:last-child td {
  421. border-bottom: none;
  422. }
  423. /* 按钮样式 - 金色主题 */
  424. .btn {
  425. display: inline-flex;
  426. align-items: center;
  427. justify-content: center;
  428. padding: 10px 20px;
  429. border-radius: 8px;
  430. font-weight: 600;
  431. font-size: 13px;
  432. cursor: pointer;
  433. transition: all 0.3s ease;
  434. border: none;
  435. text-decoration: none;
  436. }
  437. .btn-primary {
  438. background: linear-gradient(135deg, #f0b90b 0%, #f8d12f 100%);
  439. color: #0d0d0d;
  440. }
  441. .btn-primary:hover {
  442. transform: translateY(-2px);
  443. box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
  444. }
  445. .btn-secondary {
  446. background-color: #1a1a1a;
  447. color: #e0e0e0;
  448. border: 1px solid #333333;
  449. }
  450. .btn-secondary:hover {
  451. background-color: #252525;
  452. }
  453. /* 卡片样式 - 深色主题 */
  454. .card {
  455. background-color: #141414;
  456. border-radius: 12px;
  457. padding: 20px;
  458. margin-bottom: 16px;
  459. border: 1px solid #1f1f1f;
  460. }
  461. .card-title {
  462. font-size: 16px;
  463. font-weight: 600;
  464. color: #ffffff;
  465. margin-bottom: 10px;
  466. }
  467. .card-content {
  468. color: #b0b0b0;
  469. font-size: 13px;
  470. line-height: 1.7;
  471. }
  472. /* 分隔线 */
  473. .divider {
  474. height: 1px;
  475. background: linear-gradient(90deg, transparent, #1f1f1f, transparent);
  476. margin: 24px 0;
  477. }
  478. /* 文字选择颜色 */
  479. ::selection {
  480. background-color: rgba(240, 185, 11, 0.3);
  481. color: #ffffff;
  482. }
  483. /* 滚动条样式 - 深色主题 */
  484. ::-webkit-scrollbar {
  485. width: 8px;
  486. }
  487. ::-webkit-scrollbar-track {
  488. background: #0d0d0d;
  489. }
  490. ::-webkit-scrollbar-thumb {
  491. background: #333333;
  492. border-radius: 4px;
  493. }
  494. ::-webkit-scrollbar-thumb:hover {
  495. background: #444444;
  496. }
  497. /* ==================== 浅色主题样式 ==================== */
  498. /* 浅色主题 - 基础 */
  499. body.theme-light {
  500. color: #121212;
  501. background-color: #FFFFFF;
  502. }
  503. body.theme-light .container {
  504. background-color: #FFFFFF;
  505. }
  506. /* 浅色主题 - 头部 */
  507. body.theme-light .header {
  508. background-color: #FFFFFF;
  509. border-bottom-color: #EFEFEF;
  510. }
  511. body.theme-light .brand-name {
  512. color: #121212;
  513. }
  514. body.theme-light .page-title {
  515. color: #121212;
  516. }
  517. body.theme-light .update-time {
  518. color: #666666;
  519. }
  520. body.theme-light .page-description {
  521. color: #555555;
  522. }
  523. /* 浅色主题 - 内容区域 */
  524. body.theme-light .content {
  525. color: #333333;
  526. }
  527. body.theme-light .section {
  528. background-color: #F4F4F4;
  529. border-color: #E8E8E8;
  530. }
  531. body.theme-light .section-title {
  532. color: #121212;
  533. border-bottom-color: #E8E8E8;
  534. }
  535. body.theme-light .paragraph {
  536. color: #333333;
  537. }
  538. body.theme-light .sub-title {
  539. color: #191919;
  540. }
  541. /* 浅色主题 - 列表 */
  542. body.theme-light .list-item {
  543. color: #333333;
  544. }
  545. body.theme-light .numbered-item {
  546. color: #333333;
  547. }
  548. /* 浅色主题 - 提示框 */
  549. body.theme-light .important {
  550. background-color: #FFF8E1;
  551. border-left-color: #f0b90b;
  552. }
  553. body.theme-light .important p {
  554. color: #8B6914;
  555. }
  556. body.theme-light .warning {
  557. background-color: #FFF2F0;
  558. border-left-color: #ff4d4f;
  559. }
  560. body.theme-light .warning p {
  561. color: #CF1322;
  562. }
  563. body.theme-light .note {
  564. background-color: #F6FFED;
  565. border-left-color: #52c41a;
  566. }
  567. body.theme-light .note p {
  568. color: #389E0D;
  569. }
  570. /* 浅色主题 - 底部 */
  571. body.theme-light .footer {
  572. background-color: #FFFFFF;
  573. border-top-color: #EFEFEF;
  574. }
  575. body.theme-light .copyright {
  576. color: #888888;
  577. }
  578. /* 浅色主题 - 目录导航 */
  579. body.theme-light .toc {
  580. background-color: #F4F4F4;
  581. border-color: #E8E8E8;
  582. }
  583. body.theme-light .toc-title {
  584. color: #121212;
  585. }
  586. body.theme-light .toc-link {
  587. color: #555555;
  588. }
  589. body.theme-light .toc-link:hover {
  590. color: #f0b90b;
  591. }
  592. /* 浅色主题 - 表格 */
  593. body.theme-light .table-container {
  594. border-color: #E8E8E8;
  595. }
  596. body.theme-light .data-table th {
  597. background-color: #F4F4F4;
  598. color: #121212;
  599. }
  600. body.theme-light .data-table td {
  601. color: #333333;
  602. border-bottom-color: #E8E8E8;
  603. }
  604. body.theme-light .data-table tr:hover td {
  605. background-color: #F9F9F9;
  606. }
  607. /* 浅色主题 - 按钮 */
  608. body.theme-light .btn-secondary {
  609. background-color: #F4F4F4;
  610. color: #121212;
  611. border-color: #E8E8E8;
  612. }
  613. body.theme-light .btn-secondary:hover {
  614. background-color: #EFEFEF;
  615. }
  616. /* 浅色主题 - 卡片 */
  617. body.theme-light .card {
  618. background-color: #F4F4F4;
  619. border-color: #E8E8E8;
  620. }
  621. body.theme-light .card-title {
  622. color: #121212;
  623. }
  624. body.theme-light .card-content {
  625. color: #333333;
  626. }
  627. /* 浅色主题 - 分隔线 */
  628. body.theme-light .divider {
  629. background: linear-gradient(90deg, transparent, #E8E8E8, transparent);
  630. }
  631. /* 浅色主题 - 文字选择 */
  632. body.theme-light ::selection {
  633. background-color: rgba(240, 185, 11, 0.2);
  634. color: #121212;
  635. }
  636. /* 浅色主题 - 滚动条 */
  637. body.theme-light ::-webkit-scrollbar-track {
  638. background: #FFFFFF;
  639. }
  640. body.theme-light ::-webkit-scrollbar-thumb {
  641. background: #CCCCCC;
  642. }
  643. body.theme-light ::-webkit-scrollbar-thumb:hover {
  644. background: #AAAAAA;
  645. }
  646. /* 浅色主题 - 高亮当前阅读部分 */
  647. body.theme-light :target {
  648. background-color: rgba(240, 185, 11, 0.08);
  649. }
  650. @keyframes highlight {
  651. 0% { background-color: transparent; }
  652. 30% { background-color: rgba(240, 185, 11, 0.15); }
  653. 100% { background-color: rgba(240, 185, 11, 0.08); }
  654. }