index.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>{$page.title|default='协议内容'|htmlentities} - {$site.name|htmlentities}</title>
  8. <link rel="shortcut icon" href="__CDN__/assets/img/favicon.ico"/>
  9. <link href="__CDN__/assets/css/index.css" rel="stylesheet">
  10. <style>
  11. body {
  12. overflow-x: hidden;
  13. overflow-y: auto;
  14. }
  15. .agreement-container {
  16. max-width: 1200px;
  17. margin: 0 auto;
  18. padding: 20px;
  19. background: #fff;
  20. box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  21. border-radius: 8px;
  22. margin-top: 20px;
  23. margin-bottom: 20px;
  24. overflow: visible;
  25. }
  26. .agreement-title {
  27. font-size: 28px;
  28. font-weight: bold;
  29. color: #333;
  30. text-align: center;
  31. margin-bottom: 30px;
  32. padding-bottom: 15px;
  33. border-bottom: 2px solid #f0f0f0;
  34. }
  35. .agreement-content {
  36. font-size: 16px;
  37. line-height: 1.8;
  38. color: #555;
  39. text-align: justify;
  40. overflow: visible;
  41. word-wrap: break-word;
  42. word-break: break-all;
  43. }
  44. .agreement-content img {
  45. max-width: 100%;
  46. height: auto;
  47. margin: 10px 0;
  48. display: block;
  49. }
  50. .agreement-content p {
  51. margin-bottom: 15px;
  52. overflow: visible;
  53. }
  54. .agreement-content h1,
  55. .agreement-content h2,
  56. .agreement-content h3,
  57. .agreement-content h4,
  58. .agreement-content h5,
  59. .agreement-content h6 {
  60. margin: 20px 0 15px 0;
  61. color: #333;
  62. }
  63. .agreement-content table {
  64. width: 100%;
  65. border-collapse: collapse;
  66. margin: 15px 0;
  67. }
  68. .agreement-content table td,
  69. .agreement-content table th {
  70. border: 1px solid #ddd;
  71. padding: 8px;
  72. text-align: left;
  73. }
  74. .agreement-content table th {
  75. background-color: #f2f2f2;
  76. }
  77. .agreement-content ul,
  78. .agreement-content ol {
  79. margin: 15px 0;
  80. padding-left: 30px;
  81. }
  82. .agreement-content li {
  83. margin-bottom: 8px;
  84. }
  85. .agreement-meta {
  86. text-align: center;
  87. color: #999;
  88. font-size: 14px;
  89. margin-top: 30px;
  90. padding-top: 15px;
  91. border-top: 1px solid #f0f0f0;
  92. }
  93. .back-link {
  94. display: inline-block;
  95. margin-top: 20px;
  96. color: #007bff;
  97. text-decoration: none;
  98. padding: 8px 20px;
  99. border: 1px solid #007bff;
  100. border-radius: 4px;
  101. transition: all 0.3s;
  102. }
  103. .back-link:hover {
  104. background: #007bff;
  105. color: #fff;
  106. text-decoration: none;
  107. }
  108. /* 确保页面可以正常滚动,页脚固定在底部 */
  109. html, body {
  110. height: 100%;
  111. margin: 0;
  112. padding: 0;
  113. overflow-x: hidden;
  114. }
  115. body {
  116. display: flex;
  117. flex-direction: column;
  118. }
  119. #mainbody {
  120. flex: 1;
  121. overflow-y: auto;
  122. padding-bottom: 20px;
  123. }
  124. .container {
  125. overflow: visible;
  126. }
  127. .footer {
  128. position: fixed;
  129. bottom: 0;
  130. left: 0;
  131. right: 0;
  132. background: #f8f9fa;
  133. border-top: 1px solid #e9ecef;
  134. padding: 15px 0;
  135. z-index: 1000;
  136. }
  137. .footer .container {
  138. max-width: 1200px;
  139. margin: 0 auto;
  140. padding: 0 20px;
  141. }
  142. .footer p {
  143. margin: 0;
  144. text-align: center;
  145. color: #666;
  146. font-size: 14px;
  147. }
  148. </style>
  149. </head>
  150. <body>
  151. <div id="mainbody">
  152. <div class="container">
  153. {if isset($page)}
  154. <div class="agreement-container">
  155. <h1 class="agreement-title">{$page.title|htmlentities}</h1>
  156. <div class="agreement-content">
  157. {$page.content}
  158. </div>
  159. <div class="agreement-meta">
  160. {if isset($page.createtime)}
  161. <p>发布时间:{$page.createtime|date='Y-m-d H:i:s',###}</p>
  162. {/if}
  163. <a href="{:url('index/index/index')}" class="back-link">返回首页</a>
  164. </div>
  165. </div>
  166. {else}
  167. <div class="agreement-container">
  168. <div class="text-center">
  169. <h2>暂无内容</h2>
  170. <p>抱歉,暂时没有找到相关内容。</p>
  171. <a href="{:url('index/index/index')}" class="back-link">返回首页</a>
  172. </div>
  173. </div>
  174. {/if}
  175. </div>
  176. </div>
  177. <div class="footer">
  178. <div class="container">
  179. <p>Copyright @ {$site.name|htmlentities} {:date('Y',time())} 版权所有 <a href="https://beian.miit.gov.cn" target="_blank">{$site.beian|htmlentities}</a></p>
  180. </div>
  181. </div>
  182. </body>
  183. </html>