.banner { width: 100%; height: 7.2rem; overflow: hidden; position: relative; } .banner .carousel-inner { width: 100%; height: 100%; position: relative; } .banner .carousel-inner > img { width: 100%; height: 100%; position: absolute; top: 0; left: 0; transform: translateY(100%) translateX(100%); } .banner .carousel-indicators { position: absolute; display: flex; flex-direction: column; top: auto; bottom: 1.88rem; right: 0.84rem; width: 0.16rem; align-items: center; justify-content: center; z-index: 1000; } .banner .carousel-indicators > div { width: 0.1rem; height: 0.1rem; background-color: rgba(231, 231, 231, 0.61); border-radius: 50%; transition: width 0.3s ease, height 0.3s ease; margin-bottom: 0.12rem; cursor: pointer; } .banner .carousel-indicators > div.active { width: 0.16rem; height: 0.16rem; background-color: rgba(255, 29, 32, 1); } .top-button { position: fixed; top: auto; left: auto; right: 0.64rem; bottom: 0.08rem; z-index: 2000; border: none; margin: 0; padding: 0; color: #FFF; width: 0.6rem; height: 0.54rem; border-radius: 0.02rem; opacity: 0.8; transition: opacity 0.3s ease, transform 0.3s ease; transform: translateY(calc(0.08rem + 100%)); background-color: var(--themeColor); } .top-button.show { transform: translateY(0); } .top-button:hover { opacity: 1; } .m-search { display: none; } .m-search .m-search-box { width: 100%; padding: 0.16rem 0.32rem; background-color: #EDEDED; position: relative; } .m-search .m-search-box input { background-color: #FFF; outline: none; width: 100%; height: 0.68rem; font-size: 0.28rem; color: #999999; border: none; padding: 0; border-radius: 0.04rem; text-indent: 0.24rem; } .m-search .m-search-box input::placeholder { color: #A3A3A3; } .m-search .m-search-box svg { width: 0.32rem; height: 0.32rem; color: #999999; position: absolute; z-index: 10; left: auto; top: 50%; right: 0.24rem; transform: translateX(-100%) translateY(-50%); } section { width: 100%; display: flex; align-items: center; justify-content: center; } .first-row-section { margin-top: 0.64rem; } .body-content { width: 15rem; display: flex; align-items: center; justify-content: center; overflow: hidden; } .decorate-img { width: 7.33rem; height: 0.86rem; } .first-row-left { width: 8.57rem; height: 5.66rem; position: relative; } .first-row-left .carousel { width: 100%; height: 100%; position: relative; } .first-row-left .carousel-inner { width: 100%; height: 100%; overflow: hidden; position: relative; } .first-row-left .carousel-inner > a { width: 100%; height: 100%; position: absolute; display: block; top: 0; left: 0; transform: translateX(100%); } .first-row-left .carousel-inner > a > img { width: 100%; height: 100%; transform: scale(1); transition: scale 0.3s ease; transform-origin: center; } .first-row-left .carousel-inner > a > img:hover { transform: scale(1.2); } .first-row-left .footer { position: absolute; top: auto; bottom: 0; width: 100%; background-color: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: space-between; height: 0.8rem; } .first-row-left .carousel-inner-title { width: 40%; height: 100%; display: flex; align-items: center; justify-content: flex-start; flex: 1; position: relative; overflow: hidden; } .first-row-left .carousel-inner-title > div { position: absolute; z-index: 10; width: 100%; text-indent: 0.36rem; color: #FFF; word-break:keep-all; /* 不换行 */ white-space:nowrap; /* 不换行 */ overflow:hidden; /* 内容超出宽度时隐藏超出部分的内容 */ text-overflow:ellipsis; /*溢出时显示省略标记...;需与overflow:hidden;一起使用*/ transform: translateX(-100%); } .first-row-left .carousel-inner-title > div a { color: #FFF; } .first-row-left .carousel-indicators { display: flex; padding: 0 0.4rem; align-items: center; justify-content: center; } .first-row-left .carousel-indicators > div { width: 0.1rem; height: 0.1rem; background-color: rgba(231, 231, 231, 0.61); border-radius: 50%; transition: width 0.3s ease, height 0.3s ease; cursor: pointer; margin-left: 0.18rem; } .first-row-left .carousel-indicators > div:first-child { margin-left: 0; } .first-row-left .carousel-indicators > div.active { width: 0.16rem; height: 0.16rem; background-color: #FFF; } .first-row-right { margin-left: 0.32rem; height: 5.66rem; width: 30%; flex: 1; overflow: hidden; } .tabs { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; } .tabs > .tabs-nav { width: calc(100% - 0.08rem); margin-left: 0.08rem; border-bottom: 1px solid #D5D5D5; position: relative; display: flex; align-items: center; justify-content: flex-start; height: 0.52rem; } .tabs > .tabs-nav > .nav { height: 100%; display: flex; align-items: center; justify-content: center; margin-right: 0.2rem; color: #3E3A39; font-size: 0.24rem; cursor: pointer; } .tabs > .tabs-nav > .nav.active { border-bottom: 0.04rem solid red; color: var(--themeColor); } .tabs > .tabs-nav > .division { width: 1px; height: 0.17rem; margin-right: 0.2rem; background-color: #F0F0F0; display: block; border: none; } .tabs > .tabs-nav > .division:first-child { display: none; } .tabs > .tabs-nav > .more-buttons { position: absolute; top: 50%; left: auto; right: 0; transform: translateY(-50%); } .tabs > .tabs-nav > .more-buttons .more-btn { border: 1px solid #D5D5D5; background-color: transparent; color: #D5D5D5; font-size: 0.14rem; width: 0.75rem; height: 0.34rem; cursor: pointer; } .tabs > .tabs-nav > .more-buttons .more-btn:hover { color: #FFF; border-color: var(--themeColor); background: var(--themeColor); } .tabs > .tabs-nav > .more-buttons > a { display: none; } .tabs > .tabs-nav > .more-buttons > a.active { display: block; } .tabs > .tabs-body { width: 100%; height: 50%; flex: 1; position: relative; overflow: hidden; } .tabs > .tabs-body > .tab-pane { width: 100%; height: 100%; position: absolute; transform: translateX(100%); } .tabs > .tabs-footer { display: none; width: 100%; align-items: center; justify-content: center; } .tabs > .tabs-footer > a { color: #A3A3A3; font-size: 0.3rem; } .media-list { width: 100%; height: 100%; overflow: hidden; padding-top: 0.15rem; } .media-list .media { width: 100%; height: 0.5rem; display: flex; align-items: center; justify-content: space-between; } .media-list .media > .title { width: 50%; flex: 1; word-break:keep-all; /* 不换行 */ white-space:nowrap; /* 不换行 */ overflow:hidden; /* 内容超出宽度时隐藏超出部分的内容 */ text-overflow:ellipsis; /*溢出时显示省略标记...;需与overflow:hidden;一起使用*/ text-indent: 0.24rem; display: block; color: #1f2329; font-size: 0.2rem; line-height: 0.5rem; background-image: linear-gradient(to right, #CDCDCD, #CDCDCD); background-size: 0.07rem 0.07rem; background-repeat: no-repeat; background-position: 0.08rem center; } .media-list .media > .time { color: #9F9F9F; font-size: 0.15rem; line-height: 0.5rem; margin-left: 0.3rem; } .media-list .media:hover > .title { color: var(--themeColor); background-image: linear-gradient(to right, var(--themeColor), var(--themeColor)); } .first-row-right .media-list .media { border-bottom: 1px solid #F0F0F0; } .tow-section { margin-top: 0.26rem; padding-top: 0.38rem; padding-bottom: 0.48rem; margin-bottom: 0.2rem; background-image: url('../img/index-three-row-bg.jpg') } .tow-row-left, .tow-row-center, .tow-row-right { width: 33%; flex: 1; height: 3.46rem; margin-left: 0.18rem; transition: opacity 0.5s ease, transform 0.5s ease; opacity: 0.5; border-bottom: 1px solid var(--themeColor); } .tow-row-left { transform: translateX(-50%); } .tow-row-center { transform: translateY(50%); } .tow-row-right { transform: translateX(50%); } .tow-row-left.show, .tow-row-center.show, .tow-row-right.show { transform: translateX(0) translateY(0); opacity: 1; } .tow-row-left { margin-left: 0; } .tow-row-left .media-list .media .title, .tow-row-center .media-list .media .title, .tow-row-right .media-list .media .title { background-size: 0.07rem 0.07rem; background-image: radial-gradient(var(--themeColor) 70%, transparent 71%, transparent); } .three-row-left, .three-row-right { width: 50%; flex: 1; height: 3.7rem; margin-left: 0.32rem; } .three-row-left { margin-left: 0; } .media-object-list { width: 100%; height: 2.3rem; overflow: hidden; display: flex; flex-direction: row; margin-top: 0.35rem; } .media-object-list .media-object { width: 3.37rem; height: 2.3rem; flex-grow: 0; flex-shrink: 0; display: block; margin-left: 0.16rem; background: #000; } .media-object-list .media-object:first-child { margin-left: 0; } .media-object-list .media-object > img, .media-object-list .media-object > video { width: 100%; height: 100%; } .rolling-list { width: 100%; height: 100%; overflow: hidden; position: relative; } .rolling-list > div { position: absolute; left: 0; top: 0; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; } .rolling-list .rolling-item { width: 3.53rem; height: 2.3rem; margin-right: 0.16rem; flex-grow: 0; flex-shrink: 0; } .rolling-list .rolling-item > img { width: 100%; height: 100%; } .three-row-left .rolling-list-box { height: 2.3rem; width: 100%; overflow:hidden; margin-top: 0.35rem; } .propagate { margin-top: 0.35rem; } @media screen and (max-width:960px) { .banner { height: 3.1rem; } .banner .carousel-indicators { display: none; } .m-search { display: block; } .first-row-section { margin-top: 0.35rem; } .body-content { width: 6.9rem; flex-direction: column; } .first-row-section .body-content { width: 100%; } .first-row-section .body-content .first-row-right { width: 6.9rem; margin-left: auto; margin-right: auto; } .first-row-left { width: 100%; height: 4.4rem; } .first-row-left .footer { height: 0.68rem; background-color: rgba(223, 0, 3, 0.8); } .first-row-left .carousel-inner-title > div { text-indent: 0.36rem; padding: 0 0.64rem; } .first-row-left .carousel-indicators { display: none; } .first-row-right { width: 100%; height: 8rem; min-height: 8rem; margin-left: 0; flex-grow: 0; flex-shrink: 0; margin-top: 0.32rem; } .tabs > .tabs-nav { justify-content: center; border-bottom: none; height: 0.58rem; margin-left: 0; width: 100%; } .tabs > .tabs-nav > .nav { font-size: 0.32rem; } .tabs > .tabs-nav > .more-buttons { display: none; } .tabs > .tabs-nav > .division { background-color: transparent; } .tabs > .tabs-body { margin-top: 0.2rem; } .tabs > .tabs-footer { display: flex; padding: 0.2rem 0.4rem; } .tabs > .tabs-footer > a { display: none; width: 100%; height: 0.74rem; align-items: center; justify-content: center; } .tabs > .tabs-footer > a.active { display: flex; } .media-list .media { height: 1.36rem; line-height: 0.42rem; padding: 0.27rem 0.16rem; margin-top: 0.16rem; display: block; position: relative; border-bottom: none; background-color: #F7F7F7; } .media-list .media > .title { height: 100%; width: 100%; font-size: 0.32rem; line-height: 0.42rem; word-break: break-all; white-space: normal; padding-left: 0.16rem; background-position: 0 calc(0.5em + 0.035rem); text-indent: 0; } .media-list .media > .title .iconfont { float: left; } .media-list .media > .time { position: absolute; font-size: 0.24rem; top: auto; bottom: 0; left: auto; right: 0; padding-left: 0.64rem; height: 0.42rem; line-height: 0.42rem; background-image: linear-gradient(to right, transparent, #F7F7F7 0.56rem, #F7F7F7); transform: translateX(-0.16rem) translateY(-50%); } .media-list .media:first-child { margin-top: 0; } .first-row-right .media-list .media { border-bottom: none; } .picture-decoration img { margin-top: 0.24rem; } .picture-decoration img:first-child { margin-top: 0; } .tow-section { background-image: none; margin-top: 0; } .tow-row-left, .tow-row-center, .tow-row-right { width: 100%; height: 7.83rem; min-height: 7.83rem; margin-left: 0; flex-grow: 0; flex-shrink: 0; margin-top: 0.32rem; transform: translateX(0) translateY(0); opacity: 1; transition-duration: 1ms; border-bottom: none; } .tow-row-left.tabs > .tabs-body, .tow-row-center.tabs > .tabs-body, .tow-row-right.tabs > .tabs-body { border-bottom: none; border-left: 1px solid var(--themeColor); border-top: 1px solid var(--themeColor); border-right: 1px solid var(--themeColor); } .tow-row-left.tabs > .tabs-footer, .tow-row-center.tabs > .tabs-footer, .tow-row-right.tabs > .tabs-footer { border-top: none; border-left: 1px solid var(--themeColor); border-bottom: 1px solid var(--themeColor); border-right: 1px solid var(--themeColor); } .tow-row-left .media-list .media, .tow-row-center .media-list .media, .tow-row-right .media-list .media { margin-top: 0; background-color: #FFF; background-image: linear-gradient(to right, #F0F0F0, #F0F0F0); background-size: calc(100% - 0.16rem * 2) 1px; background-repeat: no-repeat; background-position: 0.16rem bottom; height: 1.14rem; padding: 0.16rem 0.16rem; } .tow-row-left .media-list .media > .time, .tow-row-center .media-list .media > .time, .tow-row-right .media-list .media > .time { background-image: linear-gradient(to right, transparent, #FFF 0.56rem, #FFF); height: 0.42rem; line-height: 0.42rem; padding-top: 0.1rem; } .three-section { margin-bottom: 0.65rem; } .three-row-left, .three-row-right { width: 100%; height: 7.2rem; min-height: 7.2rem; margin-left: 0; flex-grow: 0; flex-shrink: 0; margin-top: 0.32rem; } .three-row-left { height: 6.16rem; min-height: 6.16rem; } .three-row-right { height: 4.5rem; min-height: 4.5rem; } .three-row-left.tabs > .tabs-nav, .three-row-right.tabs > .tabs-nav { border: none; width: 100%; background-size: 100% 1px, 1px 100%, 1px 100%; background-repeat: no-repeat; background-position: left center, left top, right top; background-image: linear-gradient(to right, var(--themeColor), var(--themeColor)), linear-gradient(to bottom, transparent , transparent 50%, var(--themeColor), var(--themeColor) 50%, var(--themeColor)), linear-gradient(to bottom, transparent , transparent 50%, var(--themeColor), var(--themeColor) 50%, var(--themeColor)); } .three-row-left.tabs > .tabs-nav > .nav, .three-row-right.tabs > .tabs-nav > .nav { background: #FFF; padding: 0 0.24rem; border-bottom: none !important; } .three-row-left.tabs > .tabs-body, .three-row-right.tabs > .tabs-body { border-bottom: none; border-top: none; margin-top: 0; border-left: 1px solid var(--themeColor); border-right: 1px solid var(--themeColor); } .three-row-left.tabs > .tabs-body { border-bottom: 1px solid var(--themeColor); } .three-row-left.tabs > .tabs-footer, .three-row-right.tabs > .tabs-footer { border-top: none; padding-bottom: 0.4rem; border-left: 1px solid var(--themeColor); border-right: 1px solid var(--themeColor); border-bottom: 1px solid var(--themeColor); } .three-row-left.tabs > .tabs-footer a, .three-row-right.tabs > .tabs-footer a { background-color: #E8E8E8; } .media-object-list { flex-direction: column; align-items: center; justify-content: flex-start; height: 100%; padding-top: 0; } .media-object-list .media-object { width: 6rem; height: 2.31rem; display: block; margin-top: 0.2rem; margin-left: 0; flex-shrink: 0; flex-grow: 0; } .rolling-list { width: 100%; height: 100%; overflow: hidden; position: relative; } .rolling-list > div { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; } .rolling-list .rolling-item { width: 6rem; height: 2.3rem; margin-top: 0.2rem; flex-grow: 0; flex-shrink: 0; margin-right: 0; } .rolling-list .rolling-item:first-child { margin-top: 0; } .three-row-left .rolling-list-box { height: 4.83rem; width: 6rem; margin: 0.35rem auto 0 auto; overflow:hidden; } .three-row-right .media-object-list .media-object { display: none; } .three-row-right .media-object-list .media-object:first-child { display: block; } .top-button { display: none; } }