|
|
@@ -1,112 +1,166 @@
|
|
|
-* {
|
|
|
- margin: 0;
|
|
|
- padding: 0;
|
|
|
- box-sizing: border-box;
|
|
|
-}
|
|
|
-
|
|
|
-body {
|
|
|
- font-family: Arial, sans-serif;
|
|
|
- background-color: #f9f9f9;
|
|
|
- color: #333;
|
|
|
-}
|
|
|
-
|
|
|
-.container {
|
|
|
- max-width: 800px;
|
|
|
- margin: 0 auto;
|
|
|
- padding: 20px;
|
|
|
-}
|
|
|
-
|
|
|
-header {
|
|
|
- background-color: #4CAF50;
|
|
|
- color: white;
|
|
|
- padding: 15px;
|
|
|
- text-align: center;
|
|
|
-}
|
|
|
-
|
|
|
-nav ul {
|
|
|
- list-style-type: none;
|
|
|
-}
|
|
|
-
|
|
|
-nav ul li {
|
|
|
- display: inline;
|
|
|
- margin: 0 10px;
|
|
|
-}
|
|
|
-
|
|
|
-nav a {
|
|
|
- color: white;
|
|
|
- text-decoration: none;
|
|
|
-}
|
|
|
-
|
|
|
-nav a:hover {
|
|
|
- text-decoration: underline;
|
|
|
-}
|
|
|
-
|
|
|
-main {
|
|
|
- margin-top: 20px;
|
|
|
-}
|
|
|
-
|
|
|
-.rankings {
|
|
|
- background-color: #fff;
|
|
|
- border-radius: 8px;
|
|
|
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
|
|
- padding: 15px;
|
|
|
-}
|
|
|
-// .ima1{
|
|
|
-// float: left;
|
|
|
-// width: 120px;
|
|
|
-// height: 100%;
|
|
|
-// object-fit: cover; /* 保持照片比例 */
|
|
|
-// border-radius: 8px; /* 圆角 */
|
|
|
-// box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* 阴影 */
|
|
|
-// }
|
|
|
-.program {
|
|
|
- height: 185px;
|
|
|
- margin-bottom: 20px;
|
|
|
- padding: 15px;
|
|
|
- border-bottom: 1px solid #e0e0e0;
|
|
|
-}
|
|
|
-
|
|
|
-.program:last-child {
|
|
|
- border-bottom: none;
|
|
|
-}
|
|
|
-
|
|
|
-h2 {
|
|
|
- font-size: 1.5em;
|
|
|
- margin-bottom: 10px;
|
|
|
-}
|
|
|
-
|
|
|
-p {
|
|
|
- margin-bottom: 5px;
|
|
|
-}
|
|
|
-
|
|
|
-.watch-button {
|
|
|
- background-color: #4CAF50;
|
|
|
- color: white;
|
|
|
- border: none;
|
|
|
- padding: 10px 15px;
|
|
|
- border-radius: 5px;
|
|
|
- cursor: pointer;
|
|
|
- transition: background-color 0.3s;
|
|
|
-}
|
|
|
-
|
|
|
-.watch-button:hover {
|
|
|
- background-color: #45a049;
|
|
|
-}
|
|
|
-
|
|
|
-footer {
|
|
|
- text-align: center;
|
|
|
- margin-top: 20px;
|
|
|
- font-size: 0.8em;
|
|
|
- color: #777;
|
|
|
-}
|
|
|
-.text{
|
|
|
-display: -webkit-box;
|
|
|
--webkit-line-clamp: 3;
|
|
|
--webkit-box-orient: vertical;
|
|
|
-overflow: hidden;
|
|
|
-white-space: normal;
|
|
|
-}
|
|
|
-
|
|
|
-.text1{
|
|
|
- height: 185px;
|
|
|
- }
|
|
|
+/* 基础样式 */
|
|
|
+.navbar {
|
|
|
+ background-color: #ffe7df;
|
|
|
+ height: auto; /* 高度自适应 */
|
|
|
+ padding: 10px 20px; /* 减小内边距以适应小屏幕 */
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column; /* 垂直排列 */
|
|
|
+ align-items: center; /* 居中对齐 */
|
|
|
+}
|
|
|
+
|
|
|
+.logo {
|
|
|
+ font-size: 24px; /* 调整字体大小 */
|
|
|
+ font-weight: bold;
|
|
|
+ color: #232c53;
|
|
|
+}
|
|
|
+
|
|
|
+.navbar ul {
|
|
|
+ list-style-type: none;
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap; /* 允许换行 */
|
|
|
+ justify-content: center; /* 居中对齐 */
|
|
|
+}
|
|
|
+
|
|
|
+.navbar li {
|
|
|
+ margin: 5px; /* 调整间距 */
|
|
|
+}
|
|
|
+
|
|
|
+.navbar li a {
|
|
|
+ color: #777b91;
|
|
|
+ text-decoration: none;
|
|
|
+ padding: 5px; /* 减小内边距 */
|
|
|
+}
|
|
|
+
|
|
|
+.navbar li a:hover {
|
|
|
+ color: #141e46;
|
|
|
+}
|
|
|
+
|
|
|
+.search-box {
|
|
|
+ width: 100%; /* 适应屏幕宽度 */
|
|
|
+ margin-top: 10px; /* 添加顶部间距 */
|
|
|
+}
|
|
|
+
|
|
|
+.search-box input {
|
|
|
+ width: calc(100% - 20px); /* 减去内边距 */
|
|
|
+ height: 30px;
|
|
|
+ border: none;
|
|
|
+ padding: 5px 10px;
|
|
|
+ border-radius: 6px;
|
|
|
+ background-color: #eff6f8;
|
|
|
+}
|
|
|
+
|
|
|
+.buttons {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column; /* 垂直排列按钮 */
|
|
|
+ align-items: center; /* 居中对齐 */
|
|
|
+ margin-top: 10px; /* 添加顶部间距 */
|
|
|
+}
|
|
|
+
|
|
|
+.buttons button {
|
|
|
+ margin: 5px 0; /* 垂直间距 */
|
|
|
+ padding: 5px 10px;
|
|
|
+ border: none;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
+
|
|
|
+.login {
|
|
|
+ color: #232c53;
|
|
|
+ background-color: #fff;
|
|
|
+}
|
|
|
+
|
|
|
+.register {
|
|
|
+ color: #fff;
|
|
|
+ background-color: #232c53;
|
|
|
+ border-radius: 10px;
|
|
|
+}
|
|
|
+
|
|
|
+/* 视频容器的样式 */
|
|
|
+.vido-type {
|
|
|
+ width: 100%; /* 适应屏幕宽度 */
|
|
|
+ max-width: 414px; /* 最大宽度 */
|
|
|
+ height: auto; /* 高度自适应 */
|
|
|
+ margin: 10px auto; /* 居中 */
|
|
|
+}
|
|
|
+
|
|
|
+/* 视频元素本身的样式 */
|
|
|
+video {
|
|
|
+ width: 100%; /* 让视频填满其容器的宽度 */
|
|
|
+ height: auto; /* 高度自适应 */
|
|
|
+}
|
|
|
+
|
|
|
+/* 控制条容器的样式 */
|
|
|
+.controls {
|
|
|
+ bottom: 20px; /* 控制条距离容器底部20像素 */
|
|
|
+ width: 100%; /* 适应屏幕宽度 */
|
|
|
+ text-align: center; /* 控制条内容居中对齐 */
|
|
|
+ background-color: black; /* 控制条容器的背景颜色为黑色 */
|
|
|
+ margin: 0 auto; /* 外边距: 0(上下),自动(左右居中) */
|
|
|
+}
|
|
|
+
|
|
|
+/* 控制按钮的样式 */
|
|
|
+.controls button {
|
|
|
+ margin: 0 5px; /* 外边距: 0(上下),5像素(左右 - 按钮之间的间距) */
|
|
|
+ background-color: black; /* 按钮的背景颜色为黑色 */
|
|
|
+ color: rgb(0, 136, 255); /* 设置按钮文字颜色(RGB值为蓝色) */
|
|
|
+}
|
|
|
+
|
|
|
+/* 内容区域样式 */
|
|
|
+.art-content {
|
|
|
+ width: 100%; /* 适应屏幕宽度 */
|
|
|
+ max-width: 414px; /* 最大宽度 */
|
|
|
+ background-color: #fff;
|
|
|
+ padding: 10px; /* 减小内边距 */
|
|
|
+ margin: 0 auto; /* 居中 */
|
|
|
+}
|
|
|
+
|
|
|
+ul#user_evaluate li {
|
|
|
+ border-top: 2px dashed #eee;
|
|
|
+ padding: 15px 0; /* 减小内边距 */
|
|
|
+ list-style: none;
|
|
|
+}
|
|
|
+
|
|
|
+li.evaluate_li span {
|
|
|
+ display: inline-block;
|
|
|
+ vertical-align: top;
|
|
|
+}
|
|
|
+
|
|
|
+li.evaluate_li span.img img {
|
|
|
+ width: 40px; /* 调整头像大小 */
|
|
|
+ height: 40px; /* 调整头像大小 */
|
|
|
+ border-radius: 50%;
|
|
|
+ margin-right: 15px; /* 调整间距 */
|
|
|
+}
|
|
|
+
|
|
|
+li.evaluate_li span.info {
|
|
|
+ width: calc(100% - 60px); /* 适应宽度 */
|
|
|
+ display: inline-block;
|
|
|
+ vertical-align: top;
|
|
|
+}
|
|
|
+
|
|
|
+li.evaluate_li span.info h4 {
|
|
|
+ font-size: 10px; /* 调整字体大小 */
|
|
|
+ color: #999;
|
|
|
+}
|
|
|
+
|
|
|
+li.evaluate_li span.info p.time {
|
|
|
+ font-size: 10px; /* 调整字体大小 */
|
|
|
+ color: #999;
|
|
|
+}
|
|
|
+
|
|
|
+li.evaluate_li span.info div.reply_info {
|
|
|
+ margin-top: 10px; /* 调整间距 */
|
|
|
+ padding: 10px; /* 减小内边距 */
|
|
|
+ background: #f8f8f8;
|
|
|
+ font-size: 10px; /* 调整字体大小 */
|
|
|
+ color: #999;
|
|
|
+}
|
|
|
+
|
|
|
+input[type="text"] {
|
|
|
+ background: #f8f8f8;
|
|
|
+ color: #999;
|
|
|
+ border-color: #f8f8f8;
|
|
|
+ width: calc(100% - 20px); /* 适应宽度 */
|
|
|
+ padding: 5px; /* 添加内边距 */
|
|
|
+}
|