1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746
| /* 移除所有元素的默认外边距和内边距 */ * { margin: 0; /* 移除所有元素的外边距 */ padding: 0; /* 移除所有元素的内边距 */ }
/* 顶部整体 */ .vidContainer { width: 100%; /* 设置视频容器的宽度为父元素的 100% */ display: flex; /* 使用 flexbox 布局 */ justify-content: center; /* 将子元素水平居中对齐 即 视频水平对齐 */ overflow: hidden; /* 隐藏超出容器的内容 */ }
/* 设置视频的样式 */ .vid { position: relative; /* 使用相对定位,使其相对于正常位置进行定位 */ width: 110%; /* 设置视频的宽度为容器的 110%,确保视频覆盖整个容器 */ height: 100%; /* 设置视频的高度为容器的 100% */ }
/* 定义顶部导航栏的容器 */ .navContainer { /* 绝对定位,使导航栏相对于父元素定位 */ position: absolute; /* 使用 flexbox 布局,将子元素水平排列 */ display: flex; /* 子元素之间的空间均匀分布,两端留空 */ justify-content: space-between; /* 子元素垂直居中对齐 */ align-items: center; /* 设置导航栏宽度为父容器的 100% */ width: 100%; /* 设置导航栏的固定高度 */ height: 56px; /*设置高度为离顶部*/ top: 10px; }
/* 定义导航菜单的容器 */ .first-nav { /* 使用 flexbox 布局,将导航菜单项水平排列 */ display: flex; /* 设置导航菜单的高度 */ height: 36px; /* 设置导航菜单的最小宽度 */ min-width: 452px; /* 设置导航菜单距离左侧的边距 */ margin-left: 20px; }
/* 定义导航菜单项的样式 */ .f-n { /* 使用 flexbox 布局,将导航菜单项水平排列 */ display: flex; /* 子元素垂直居中对齐 */ align-items: center; /* 设置字体大小 */ font-size: 14px; /* 设置字体颜色为白色 */ color: #fff; /* 为文字添加阴影效果 */ text-shadow: 0 1px 1px rgb(0 0 0 / 30%); }
/* 定义单个导航菜单项的样式 */ .f-n li { /* 设置右侧的外边距 */ margin-right: 12px; /* 设置鼠标悬停时显示为指针 */ cursor: pointer; /* 设置文本居中对齐 */ text-align: center; /* 移除左侧的圆点 */ list-style: none; }
/* 定义搜索框的容器 */ .searchInput { /* 使用 flexbox 布局,将输入框和按钮水平排列 */ display: flex; /* 使用相对定位,使搜索框相对于其正常位置进行调整 */ position: relative; /* 调整搜索框距离左侧的位置 */ left: -20px; /* 设置搜索框的宽度 */ width: 500px; /* 设置搜索框的高度 */ height: 36px; }
/* 定义输入框的样式 */ .searchInput input { /* 设置输入框的高度 */ height: 100%; /* 设置输入框的宽度占搜索框的 85.99% */ width: 85.99%; /* 移除输入框的轮廓 */ outline: none; /* 设置输入框内边距 */ padding: 0 38px 0 16px; /* 移除输入框的边框 */ border: 1px solid hsla(0, 0%, 100%, 0); /* 设置输入框左上角和右上角的圆角 */ border-radius: 4px 0 0 4px; /* 设置输入框的背景颜色为白色 */ background-color: #fff; }
/* 定义搜索按钮的样式 */ .searchBtn { /* 设置按钮的宽度占搜索框的 14.11% */ width: 14.11%; /* 设置按钮的高度 */ height: 100%; /* 设置按钮右上角和右下角的圆角 */ border-radius: 0 4px 4px 0; /* 设置按钮的背景颜色 */ background: #e7e7e7; /* 移除按钮的边框 */ border: 1px solid hsla(0, 0%, 100%, 0); /* 设置鼠标悬停时显示为指针 */ cursor: pointer; /* 设置按钮文本居中对齐 */ text-align: center; }
/* 定义搜索按钮链接的样式 */ .searchBtn a { /* 设置字体颜色 */ color: #505050; /* 设置行高与按钮高度一致 */ line-height: 36px; /* 设置文本居中对齐 */ text-align: center; /* 设置所有属性的线性过渡效果 */ transition: all linear 0.2s; /* 移除下划线 */ text-decoration: none; }
/* 定义搜索按钮悬停时的样式 */ .searchBtn a:hover { /* 设置悬停时字体颜色 */ color: #00a1d6; }
/* 定义用户部分的容器 */ .userSection { /* 使用 flexbox 布局,将用户信息部分水平排列 */ display: flex; /* 设置右侧的外边距 */ margin-right: 20px; /* 设置用户部分的高度 */ height: 36px; }
/* 定义用户部分左侧的样式 */ .user-left { /* 使用 flexbox 布局,将用户信息项水平排列 */ display: flex; /* 子元素垂直居中对齐 */ align-items: center; /* 设置用户部分左侧宽度占 80% */ width: 80%; /* 设置用户部分的高度 */ height: 100%; }
/* 定义用户部分左侧链接的样式 */ .user-left a { /* 设置字体大小 */ font-size: 14px; /* 设置字体颜色 */ color: #fff; /* 为文字添加阴影效果 */ text-shadow: 0 1px 1px rgb(0 0 0 / 30%); /* 防止文本换行 */ white-space: nowrap; /* 设置左侧的外边距 */ margin-left: 12px; /* 移除下划线 */ text-decoration: none; } .touxaing { width: 36px; /* 设置元素的宽度 */ height: 36px; /* 设置元素的高度 */ border-radius: 50%; /* 将元素设置为圆形 */ overflow: hidden; /* 确保内容不溢出边界 */ margin-right: 10px; /* 设置右侧外边距 */ cursor: pointer; /* 鼠标悬停时显示为指针 */ display: flex; /* 使用 flex 布局 */ align-items: center; /* 垂直居中 */ justify-content: center; /* 水平居中 */ background-color: #fff; /* 设置背景颜色 */ } /* 定义用户部分右侧的样式 */ .user-right { /* 使用 flexbox 布局 */ display: flex; /* 移除下划线 */ } .user-right a { text-decoration: none; }
/* 定义用户详情按钮的样式 */ .userDetail { /* 设置用户详情按钮的宽度 */ width: 100px !important; /* 设置用户详情按钮的高度 */ height: 100%; /* 设置背景颜色 */ background-color: #fb7299; /* 设置圆角 */ border-radius: 2px; /* 设置文本居中对齐 */ text-align: center; /* 设置行高与按钮高度一致 */ line-height: 36px; /* 设置左侧的外边距 */ margin-left: 20px; }
.biliLogo { position: absolute; cursor: pointer; top: 56px; /* 距离顶部56像素 */ left: 154.66px; /* 距离浏览器左侧154.66像素 */ }
.biliLogo span { position: absolute; width: 80px; height: 40px; line-height: 40px; top: 10px; text-align: center; color: #fff; background: url('../img/logoy.png') no-repeat center center; background-size: 100%; animation: floatmove 2s infinite; transition: all 0.3s; }
/* 第一部分容器样式 */ .first-section { display: flex; /* 使用flex布局 */ width: 1198px; /* 宽度为1630px */ min-width: 999px; /* 最小宽度为999px */ height: 108px; /* 高度为108px */ margin: 0 auto; /* 水平居中 */ }
/* 第一部分内容容器样式 */ .f-1 { display: flex; /* 使用flex布局 */ width: 100%; /* 宽度为100% */ height: 100%; /* 高度为100% */ align-items: center; /* 垂直居中 */ }
/* 第一导航栏容器样式 */ .l-1 { display: flex; /* 使用flex布局 */ height: 68px; /* 高度为68px */ }
/* 第一导航栏列表样式 */ .l-ul { display: flex; /* 使用flex布局 */ width: 100%; /* 宽度为100% */ text-align: center; /* 文本居中对齐 */ justify-content: space-between; /* 子元素均匀分布 */ }
/* 第一导航栏列表项样式 */ .l-ul li { width: 66px; /* 宽度为66px */ transition: all 0.3s; /* 添加过渡效果 */ cursor: pointer; /* 鼠标悬停时显示指针 */ font-size: 14px; /* 字体大小为14px */ /* 移除左侧的圆点 */ list-style: none; width: 50px;
}
/* 第一导航栏列表项文本样式 */ .l-ul li p { transition: color linear 0.2s; /* 文本颜色过渡效果 */ }
/* 第一导航栏列表项悬停样式 */ .l-ul li:hover { color: #17a9da; /* 悬停时文本颜色 */ }
/* 第一导航栏列表项链接样式 */ .l-ul li a { display: block; /* 显示为块级元素 */ height: 54px; }
.l-ul li a div{ line-height: 36px; }
/* 导航图标样式 */ .fa-home, .fa-radiation-alt, .fa-fire-alt { font-size: 20px; /* 字体大小为20px */ color: white; /* 颜色为白色 */ }
/* 圆形图标容器样式 */ .circle { width: 36px; /* 宽度为36px */ height: 36px; line-height: 36px; text-align: center; /* 文本居中对齐 */ border-radius: 50%; /* 圆角半径为50% */ margin: 0 auto 4px; /* 居中对齐并在底部添加4px的外边距 */ }
/* 第二导航栏容器样式 */ .l-2 { position: relative; /* 相对定位 */ display: flex; /* 使用flex布局 */ height: 68px; /* 高度为68px */ top: -5px; /* 顶部偏移 -5px */ flex-wrap: wrap; /* 子元素换行 */ flex-direction: column; /* 子元素垂直排列 */ flex: 1; /* 占据剩余空间 */ box-sizing: border-box; /* 包括内边距和边框在内计算宽度和高度 */ }
/* 第二导航栏链接样式 */ .l-2 a { color: #000; /* 颜色为黑色 */ height: 34px; /* 高度为34px */ display: flex; /* 使用flex布局 */ box-sizing: border-box; /* 包括内边距和边框在内计算宽度和高度 */ transition: color linear 0.2s; /* 颜色过渡效果 */ text-decoration: none; }
/* 第二导航栏链接悬停样式 */ .l-2 a:hover { color: #17a9da; /* 悬停时颜色 */ }
/* 第二导航栏文本容器样式 */ .l-2 span { display: flex; /* 使用flex布局 */ /*align-items: center; !* 垂直居中 *!*/ font-size: 14px; /* 字体大小为14px */ line-height: 34px; /* 行高为34px */ }
/* 第二导航栏数量样式 */ .l-2 em { font-size: 12px; /* 字体大小为12px */ width: 32px; /* 宽度为32px */ line-height: 15px; /* 行高为15px */ height: 15px; /* 高度为15px */ display: inline-block; /* 显示为行内块级元素 */ background-color: skyblue; /* 背景颜色为天蓝色 */ border-radius: 2px; /* 圆角半径为2px */ color: #fff; /* 颜色为白色 */ transform: scale(0.85); /* 缩放比例为0.85 */ }
/* 第三导航栏容器样式 */ .l-3 { display: flex; /* 使用flex布局 */ flex-direction: column; /* 子元素垂直排列 */ width: 220px; /* 宽度为289px */ height: 68px; /* 高度为68px */ }
/* 第三导航栏列表样式 */ .l-3Nav { display: flex; /* 使用flex布局 */ width: 100%; /* 宽度为100% */ height: 68px; /* 高度为68px */ flex-direction: column; /* 子元素垂直排列 */ font-size: 14px; /* 字体大小为14px */ flex-wrap: wrap; /* 子元素换行 */ }
/* 第三导航栏列表项样式 */ .l-3Nav li { margin-right: 10px; /* 右外边距为10px */ transition: all 0.5s; /* 添加过渡效果 */ /* 移除左侧的圆点 */ list-style: none; }
/* 第三导航栏列表项悬停样式 */ .l-3Nav li:hover a { color: #17a9da; /* 悬停时颜色 */ }
/* 第三导航栏链接样式 */ .l-3Nav a { line-height: 34px; /* 行高为34px */ color: black; /* 颜色为黑色 */ transition: color linear 0.2s; /* 颜色过渡效果 */ text-decoration: none; }
/* 图标样式 */ .fa-buffer { color: skyblue; /* 颜色为天蓝色 */ font-size: 20px; /* 字体大小为20px */ }
.fa-flag { color: #f39800; /* 颜色为橙色 */ font-size: 18px; /* 字体大小为18px */ }
.fa-boxes { color: #f39800; /* 颜色为橙色 */ font-size: 18px; /* 字体大小为18px */ }
.fa-camera { font-size: 20px; /* 字体大小为20px */ color: skyblue; /* 颜色为天蓝色 */ }
.fa-hire-a-helper { font-size: 19px; /* 字体大小为19px */ color: #ffea85; /* 颜色为黄色 */ }
.fa-music { font-size: 17px; /* 字体大小为17px */ color: #ffd469; /* 颜色为浅黄色 */ }
/* 分割线样式 */ .line { display: block; /* 显示为块级元素 */ width: 1px; /* 宽度为1px */ height: 46px; /* 高度为46px */ margin: 0 10px; /* 水平外边距为10px */ background-color: #e7e7e7; /* 背景颜色为浅灰色 */ }
/*轮播图*/ .second-section { display: flex; justify-content: space-between; width: 1198px; height: 242px; margin: 0 auto; margin-bottom: 40px; }
.autoShow { position: relative; width: 549px; height: 100%; background-color: pink; opacity: 0; transition: opacity 0.2s; overflow: hidden; }
.autoshow-wrapper img { width: 550px; }
.autoshow-wrapper { width: 550px; position: relative; }
.autoshow-wrapper a { position: absolute; transition: transform 0.2s; }
.eat { position: absolute; display: flex; bottom: 10px; right: 15px; justify-content: space-between; align-items: center; }
.eat span { display: inline-block; width: 6px; height: 6px; border: 2px solid transparent; border-radius: 50%; background-color: #fff; vertical-align: middle; cursor: pointer; transition: all 0.2s; margin-left: 10px; z-index: 10; transition: all linear 0.2s; }
.eat span:hover { transform: scale(1.2); border: 2px solid #fff; background-color: #00a1d6; }
.autoShow .eat span.on { border: 0; border-color: transparent; background-color: transparent; background-image: url(../img/lunbo/pointer.png); background-size: 100% 100%; background-repeat: no-repeat; transform: scale(3); }
/* 左右切换按钮样式 */ button.prev, button.next { position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -22px; color: white; font-weight: bold; font-size: 18px; background-color: rgba(0, 0, 0, 0.5); border: none; cursor: pointer; opacity: 0.5; /* 设置按钮初始透明度 */ transition: background-color 0.3s, opacity 0.3s; border-radius: 20%; /* 设置按钮为弧形 */ }
button.prev { left: 0; }
button.next { right: 0; }
button.prev:hover, button.next:hover { background-color: rgba(0, 0, 0, 0.8); opacity: 1; /* 悬停时设置透明度 */ }
.tuijian { width: 674px; display: flex; flex-wrap: wrap; align-items: center; overflow: hidden; }
.tuijian img { width: 206px; height: 116px; }
.t-1 { margin-left: 10px; position: relative; margin-bottom: 10px; overflow: hidden; }
.imgContent { position: absolute; color: #fff; padding: 27px 5px 10px 10px; width: 100%; height: 100%; left: 0; top: 65px; font-weight: 500; text-align: left; font-size: 14px; transition: all 0.2s; white-space: nowrap; cursor: pointer; }
.imgContent h2{ font-size: 100%; vertical-align: baseline; font: inherit; }
.up-Wrapper { width: 100%; height: 80px; position: absolute; bottom: 0; color: #dadad5; font-size: 12px; font-weight: 700; } .up { font-size: 12px; transform: scale(0.8); line-height: 10px; font-weight: 600; text-align: center; width: 17px; height: 10px; border-radius: 3px; color: #dadad5; border: 2px solid #dadad5; } .uppig { color: #dadad5; font-size: 14px; font-weight: 400; } .t-1:hover .imgContent { top: 0; background-color: rgba(0, 0, 0, 0.6); } /*推广部分*/ .first-report-section { display: flex; width: 1202px; justify-content: space-between; margin: 0 auto; margin-bottom: 20px; }
.f-left-wrapper { width: 864px; height: 100%; overflow: hidden; }
.f-left-header { display: flex; margin-bottom: 20px; }
.fa-paper-plane { font-size: 25px; color: #ffd778; margin-right: 10px; }
.f-left-content { height: 170px; display: flex; overflow: hidden; }
.f-left-content a { text-decoration: none; }
.f-left-content div a img{ transition: transform 0.3s ease; }
.f-left-content div a img:hover{ transform: scale(1.05); }
.f-left-content a p:hover{ color: #7ecdf4; }
.f-left-content img { width: 206px; height: 116px; }
.f-left-content div { margin-right: 10px; font-size: 14px; color: #999999; cursor: pointer; }
.f-left-content div p { margin-top: 10px; color: #212121; }
.f-right-wrapper { width: 321px; height: 100%; }
.f-right-header { position: relative; top: -5px; cursor: pointer; width: 320px; height: 30px; background-color: #f4f4f4; border: 1px solid #e7e7e7; text-align: center; font-size: 12px; line-height: 30px; transition: color 0.2s; margin-bottom: 12px; }
.f-right-header:hover { color: #7ecdf4; }
.f-right-header h2{ font-size: 12px; font: inherit; }
.f-right-content img { width: 320px; height: 184px; }
.reportTitle{ width: 1202px; margin: 0 auto; margin-bottom: 20px; } .reportTitle img{ width: 100%; height: 99px; }
|