﻿
html {
    width: 100%;
    font-size: 12px;
    font-family: "宋体", SimSun, sans-serif;
}

body {
    width:100%;
    margin:0;
    padding:0;
    background:#fff;
}


* { touch-action: pan-y; }

img{
    width:100%;
    display: block;
    margin:0;
}
video{
    width:100%;
    margin:0;
}

ul{
    margin-block-start:0;
    margin-block-end:0;
    padding-inline-start:0;
}

li{
    list-style:none;
}

a{
    text-decoration:none;
}

p{
    margin-block-start:0;
    margin-block-end:0;
}

body{

}

.wrap{
    width:100%;
    height:100vh;
    overflow:hidden;
    text-align:center;
    position:relative;
    background:url(/assets/images/bg.png) no-repeat center;
}

.main-box{
    width:calc(100% - 95px - 95px);
    height:calc(100% - 70px - 105px);
    margin:70px 95px 105px 95px;/*70px 95px 105px 95px;*/
}
/*黑体*/
.SourceHanSansSC {
  /*font-family: 'SimHei', 'Heiti SC', sans-serif;*/
  font-family: 'Source Han Sans SC', sans-serif;
}
/*优*/
.excellent-text{
    color:#00b42f;
}
/*良*/
.good-text{
    color:#ff9c00;
}
/*差*/
.poor-text{
    color:#e81e05;
}

/*流星指数*/
.main-box .meteor-index-box{
    width:100%;
    height:90px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    border-bottom-style:solid;
    border-bottom-width:1px;
    border-bottom-color:rgba(255, 255, 255, 0.3);
}
.main-box .meteor-index-box > span:nth-child(1){
    color:#ffffff;
    font-size:32px;
}
.main-box .meteor-index-box > span:nth-child(1) > span{
    font-size:16px;
}
.main-box .meteor-index-box > span:nth-child(2){
    display:inline-block;
    width:150px; height:50px;
    line-height:50px;
    background:#eab051;
    border-radius:25px;
    color:#ffffff;
    font-size:30px;
    margin-left:260px;
}

section {
    width:100%;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
}
.main-box > section:nth-child(2){
    margin-top:65px;
    margin-bottom:55px;
}

.box-bg{
    background-color:rgba(255,255,255,0.3);
    border-radius:20px;
}

.now-box {
    width:690px;
    text-align:left;
}
.now-box > div:nth-child(1){
    width:100%;
    height:205px;
    position:relative;
}
.now-box > div:nth-child(1) img{
    width:335px;
    position:absolute;
    left:48px;
    top:-84px;
}
.now-box > div:nth-child(2) span{
    color:#333333;
}
.now-box > div:nth-child(2){/*tip*/
    width:calc(100% - 80px);
    height:150px;
    padding:30px 40px;
    font-size:24px;
    line-height:38px;
    color:#666666;
    overflow:hidden;
}
.now-box > div:nth-child(2) > p{
    display: -webkit-box; /* 使用弹性盒子布局模型 */
    -webkit-box-orient: vertical; /* 垂直排列盒子 */
    -webkit-line-clamp: 4; /* 限制在3行 */
    overflow: hidden; /* 隐藏溢出的内容 */
    text-overflow: ellipsis; /* 显示省略号 */
    white-space: normal; /* 使用正常的白空格处理方式，允许换行 */
}

.day-temp-box{
    text-align:center;
    position:absolute;
    top:25px;
    left:430px;
}
.day-temp{
    font-size:42px;
    color:#222;
}
.day-temp-text{
    color:#555555;
    font-size:22px;
    margin-top:10px;
}

.index-box{
    width:calc(962px - 40px - 40px);
    height:calc(415px - 25px - 25px);
    text-align:left;

    padding:25px 40px;

    background:rgba(255,255,255,0.3) url(../images/cloud-bg.png) no-repeat center;
    border-radius:20px;

    position:relative;
}
.index-box .title{
    color:#222222;
    font-size:26px;
    text-align:left;
}
.cloud-recom-box{
    text-align:center;
    position:absolute;
    top:115px;
    right:150px;
}
.cloud-recom{
    font-size:68px;
    font-weight:bold;
}
.cloud-recom-text{
    font-size:22px;
}
.index-box > div:nth-child(3){
    height:48px;
    width:calc(100% - 80px);
    position:absolute;
    bottom:40px;
    left:40px;
    text-align:left;

    display:flex;
}
.index-box > div:nth-child(3) > div{
    display:inline-block;
    height:48px;
    background:#fff;
    border-radius:24px;
    font-size:22px;
    line-height:46px;
}
.index-box > div:nth-child(3) > div:nth-child(1){
    padding-left:60px;
    padding-right:60px;
}
.aqi-box{
    margin-left:5px;
}
.aqi-text-box{
    font-size:24px;
    margin-left:15px;
    font-weight:bold;
}
.index-box > div:nth-child(3) > div:nth-child(2){
    padding-left:30px;
    padding-right:45px;
    margin-left:80px;
}
.wind-box{
    display:flex !important;
    align-items:center;
}
.wind-box > i {
    display:inline-block;
    width:37px;
    height:29px;
    background:url(../images/icon-wind.png) no-repeat center;
    background-size:cover;
}
.wind-box > span{
    margin-left:20px;
}

.sun-box{
    width:calc(690px - 40px - 40px);
    height:calc(285px - 25px - 10px);

    text-align:left;

    padding:25px 40px 15px;

    position:relative;
}
.sun-box .title{
    color:#222222;
    font-size:26px;
    text-align:left;
}
.sun-box .sunrise-sunset-box{
    width:100%;
    height:160px;
    position: relative;
}
.sun-box .sunrise-sunset-box .track {
    width: 300px;
    height: 150px;
    position: absolute;
    overflow: visible;
    /*background: linear-gradient(to bottom, #87CEEB, #E0F6FF);*/
    bottom:0;
    left:calc(50% - 150px);
}
.sun-box .sunrise-sunset-box .sun{
    width:30px;
    height:30px;
    background:url(../images/icon-sun.png) no-repeat center;
    position: absolute;
    /*
        -15:sun图标的一半（sun图标宽30）
    */
    bottom:-15px;
    /*
        140 = 610 / 2 - 150 - 15
        610：sunrise-sunset-box 总宽度
        150：半圆弧度
        15：sun图标的一半（sun图标宽30）
    */
    left:140px;
    /*transform: translate(-50%, -50%);
    transition: all 0.3s ease;*/
}

.sun-box .sunrise-sunset-text-box{
    width:100%;
    height:50px;
    color:#666666;
    border-top:1px solid rgba(102,102,102,0.2);
    font-size:22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.days-box{
    width:962px;
    height:285px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#666;
}
.days-box > ul{
    display:inline-block;
    width:95%;
    font-size:20px;
}
.days-box > ul li{
    float:left;
    width:calc(100% / 7);
    display:inline-block;
    text-align:center;
}
.days-box > ul li img{
    width:38px;
    height:38px;
    margin:0 auto;
    margin-top:25px;
    margin-bottom:35px;
}

/* 定义动画 */
@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
 
/* 定义一个名为fadeIn的关键帧动画 */
@keyframes fadeIn {
    from { /* 动画开始时 */
        opacity: 0; /* 完全透明 */
        transform: translateX(20px); /* 向下移动 */
    }
    to { /* 动画结束时 */
        opacity: 1; /* 不透明 */
        transform: translateX(0); /* 移动回原位 */
    }
}


@media screen and (max-width: 1310px) {
    /* 样式规则，适用于屏幕宽度小于1310px的设备 */

}

@media screen and (max-width: 1220px) {


}

@media screen and (max-width: 760px) {

}