@charset "gb2312";
/* CSS Document */
* { margin: 0; padding: 0 }
a:link, a:visited { text-decoration: none; }
ul, li { list-style-type: none }
img { border: 0 }
body { font-size: 12px; background: #F7D7C2 url(../images/bg.jpg) center 0 scroll no-repeat; color: #5d5d5d; }
.blank { height: 5px; overflow: hidden; width: 100%; margin: auto; clear: both }
header { padding: 50px 0 30px 0; width: 1000px; margin: auto; }
/*可删掉背景图片，直接使用文字,然后删除下一行opacity:0*/
header h1 a { color: #f77003;}
header p { margin: 30px 0 0 0; text-shadow: #000 1px 1px 1px; color: #fff; font-size: 14px }
#nav { width: 100%; line-height: 40px; height: 40px; margin: auto; font-family: "微软雅黑"; font-size: 16px }
#nav ul { margin: auto; width: 960px; background: url(../images/heart.png) left no-repeat; padding-left: 40px; overflow: hidden }
#nav ul li { display: inline-block; width: 70px; float: left; text-align: center; font-weight: bold; }
#nav ul li a { color: #2a7497; }
/* banner */
.banner { width: 1000px; margin: 45px auto 30px; background: rgba(248,227,215,.7); height: 180px; overflow: hidden }
.boy_girl { background: url(../images/lock.png) no-repeat center; width: 460px; overflow: hidden; float: left }
.boy_girl li { float: left; display: block; margin: 20px 30px 0 50px }
.boyimg, .girlimg { margin: 10px auto; width: 140px; height: 140px; border-radius: 100%; overflow: hidden; }
.boyimg a { display: block; padding-top: 100px; width: 140px; background: url(../images/boy.jpg) no-repeat; background-size: 140px 140px; }
.girlimg a { display: block; padding-top: 100px; width: 140px; background: url(../images/girl.jpg) no-repeat; background-size: 140px 140px; }
.boyimg a span, .girlimg a span { display: block; margin-top: 63px; padding-top: 8px; width: 140px; height: 55px; text-align: center; line-height: 20px; color: #fff; background: rgba(0, 0, 0, .5); -webkit-transition: margin-top .2s ease-in-out; -moz-transition: margin-top .2s ease-in-out; -o-transition: margin-top .2s ease-in-out; transition: margin-top .2s ease-in-out; }
.boyimg a:hover span, .girlimg a:hover span { display: block; margin-top: 0; }
/*文字动画效果*/
.texts { line-height: 36px; padding: 30px 0 0 0px; text-shadow: 1px 1px rgba(255,255,255,0.3); float: right; width: 530px; color: #673830; font-size: 14px; font-family: "微软雅黑" }
.texts p { -webkit-transition: all 1s; -moz-transition: all 1s; -o-transition: all 1s; transition: all 1s; -webkit-transform: translate(-40px); -moz-transform: translate(-40px); -o-transform: translate(-40px); -ms-transform: translate(-40px); transform: translate(-40px); padding-left: 40px }
.texts p:hover { padding-left: 50px }
.texts p:nth-child(1) { -webkit-animation: animations 3s ease-out 1s backwards; -moz-animation: animations 3s ease-out 1s backwards; -o-animation: animations 3s ease-out 1s backwards; -ms-animation: animations 3s ease-out 1s backwards; animation: animations 3s ease-out 1s backwards; }
.texts p:nth-child(2) { -webkit-animation: animations 3s ease-out 4s backwards; -moz-animation: animations 3s ease-out 4s backwards; -o-animation: animations 3s ease-out 4s backwards; -ms-animation: animations 3s ease-out 4s backwards; animation: animations 3s ease-out 4s backwards; }
.texts p:nth-child(3) { -webkit-animation: animations 3s ease-out 7s backwards; -moz-animation: animations 3s ease-out 7s backwards; -o-animation: animations 3s ease-out 7s backwards; -ms-animation: animations 3s ease-out 7s backwards; animation: animations 3s ease-out 7s backwards; }
@-webkit-keyframes animations { 0% {
-webkit-transform:translate(0);
opacity:0;
}
 50% {
-webkit-transform:translate(-20px);
opacity:.5;
}
 100% {
-webkit-transform:translate(-40px);
opacity:1;
}
}
@-moz-keyframes animations { 0% {
-moz-transform:translate(0);
opacity:0;
}
 50% {
-moz-transform:translate(-20px);
opacity:.5;
}
 100% {
-moz-transform:translate(-40px);
opacity:1;
}
}
@-o-keyframes animations { 0% {
-o-transform:translate(0);
opacity:0;
}
 50% {
-o-transform:translate(-20px);
opacity:.5;
}
 100% {
-o-transform:translate(-40px);
opacity:1;
}
}
@-ms-keyframes animations { 0% {
-ms-transform:translate(0);
opacity:0;
}
 50% {
-ms-transform:translate(-20px);
opacity:.5;
}
 100% {
-ms-transform:translate(-40px);
opacity:1;
}
}
@keyframes animations { 0% {
transform:translate(0);
opacity:0;
}
 50% {
transform:translate(-20px);
opacity:.5;
}
 100% {
transform:translate(-40px);
opacity:1;
}
}
/*纪念日*/
.memorial_day { width: 1000px; margin: auto; overflow: hidden; position: relative; padding: 60px; background: url(../images/day.png) no-repeat 400px 30px }
.time_axis { background: #7b929d; height: 6px; width: 100%; animation: time_a 5s; -moz-animation: time_a 5s; /* Firefox */ -webkit-animation: time_a 5s; /* Safari and Chrome */ -o-animation: time_a 5s; /* Opera */ }
/*时间轴动画效果*/
@keyframes time_a { 0% {
width:0px;
}
25% {
width:250px;
}
50% {
width:500px;
}
100% {
width:1000px;
}
}
 @-moz-keyframes time_a /* Firefox */ { 0% {
width:0px;
}
25% {
width:250px;
}
50% {
width:500px;
}
100% {
width:1000px;
}
}
 @-webkit-keyframes time_a /* Safari and Chrome */ { 0% {
width:0px;
}
25% {
width:250px;
}
50% {
width:500px;
}
100% {
width:1000px;
}
}
 @-o-keyframes time_a /* Opera */ { 0% {
width:0px;
}
25% {
width:250px;
}
50% {
width:500px;
}
100% {
width:1000px;
}
}
.dateview { position: absolute; top: -50px; left: 20px; display: block; width: 88px; background: url(../images/dtime.png) no-repeat; color: #FFF; height: 46px; line-height: 30px; text-align: center }
.memorial_day ul li a { margin-top: 30px; display: block; color: #333 }
.memorial_day ul li a:hover { text-decoration: underline }
.memorial_day ul li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; position: absolute; background: #f8e0d3; border: 3px solid #2a7497; }
.memorial_day ul li:hover::before { background: #fe7008; border-color: #fe7008; }
.memorial_day ul li.n1 { position: absolute; top: 54px; left: 90px }
.memorial_day ul li.n2 { position: absolute; top: 54px; left: 220px }
.memorial_day ul li.n3 { position: absolute; top: 54px; left: 590px }
.memorial_day ul li.n4 { position: absolute; top: 54px; left: 760px }
.memorial_day ul li.n5 { position: absolute; top: 54px; left: 890px }
/* content */
article { width: 1000px; margin: auto; overflow: hidden }
.l_box { width: 290px; float: left }
.r_box { width: 680px; float: right }
.l_box h2 { color: #333; font-size: 14px; line-height: 30px; padding-left: 20px; background: #f8eadf }
.l_box div { border: #d9d8d7 1px solid; background: #fae2d5; margin-bottom: 15px; overflow: hidden }
.l_box div ul { padding: 10px; overflow: hidden }
/* 关于 */
.about_me img, .about_he img { width: 94px; height: 94px; float: left; clear: left; margin-right: 10px; }
.about_me p, .about_he p { line-height: 24px; }
/* 最新日志 */
.newslist ul li { background: url(../images/li.png) left center no-repeat; line-height: 24px; height: 24px; overflow: hidden; padding-left: 15px; }
.newslist ul li a { color: #555; -webkit-transition: all .5s; -moz-transition: all .5s; -o-transition: all .5s; transition: all .5s; display: block }
.newslist ul li a:hover { color: #000; padding-left: 15px; background: #E7C3A9; }
/* music */
.viny dl dd { color: #555; line-height: 24px; }
.art { background: url(../images/vinyl.png) no-repeat left; width: 130px; float: left; background-size: 120px; }
.viny .art img { width: 90px; height: 90px; margin-left: 11px }
.viny dd span { width: 12px; height: 24px; margin-right: 7px; float: left; display: block; }
.icon-song span, .icon-artist span, .icon-album span, .icon-like span { background: url(../images/icons.png) no-repeat }
.icon-song span { background-position: 0px 6px }
.icon-artist span { background-position: 0 -17px }
.icon-album span { background-position: 0 -40px }
.music audio { width: 100%; margin-top: 10px }
/* 文章列表 */
.r_box li { background: #f9e4d8; border: #d9d8d7 1px solid; padding: 15px; overflow: hidden; color: #797b7c; margin-bottom: 15px }
.r_box li h3 { font-size: 16px; background: url(../images/blogli.png) left center no-repeat; line-height: 25px; padding-left: 50px; text-shadow: #FFF 1px 1px 1px }
.r_box li h3 a { color: #222 }
.r_box li h3 a:hover { color: #000; text-decoration: underline }
.r_box li img { float: right; clear: right; margin-left: 20px; width: 150px }
.r_box li p { margin: 20px 0 0 0; line-height: 22px }
footer { background: #111; line-height: 40px; }
footer p { color: #FFF; text-align: right; width: 1000px; margin: auto }
footer a { color: #FFF; text-align: right; width: 1000px; margin: auto }
/* ===== responsive: PC layout unchanged, tablet/mobile adapt ===== */
@media screen and (max-width: 1140px) {
  .memorial_day {
    width: auto;
    max-width: 1000px;
    padding: 45px 30px 55px;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 1040px) {
  html, body { overflow-x: hidden; }
  body { -webkit-text-size-adjust: 100%; }

  header, .banner, article, footer p {
    width: auto;
    max-width: 1000px;
    box-sizing: border-box;
  }
  header { padding: 30px 15px 15px; }
  header p { margin-top: 15px; line-height: 22px; }

  #nav ul {
    width: auto;
    margin: 0 15px;
    padding-left: 45px;
    display: flex;
    justify-content: space-between;
  }
  #nav ul li {
    width: auto;
    min-width: 0;
    float: none;
    flex: 0 1 auto;
    white-space: nowrap;
  }

  .banner {
    height: auto;
    margin: 25px auto 20px;
    padding: 10px 0;
  }
  .boy_girl {
    width: 100%;
    float: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .boy_girl li { margin: 10px 15px; float: none; }

  .texts {
    width: auto;
    float: none;
    padding: 10px 15px 5px;
    line-height: 30px;
    text-align: center;
  }
  .texts p {
    padding-left: 0;
    -webkit-transform: none;
    -moz-transform: none;
    -ms-transform: none;
    -o-transform: none;
    transform: none;
  }
  .texts p:hover { padding-left: 0; }
  .texts p img { max-width: 100%; height: auto; }

  .memorial_day {
    max-width: 100%;
    margin: 20px auto;
    padding: 25px 15px 10px;
    background-image: none;
  }
  .time_axis { display: none; }
  .memorial_day ul {
    position: relative;
    margin: 10px 0 0 12px;
    padding-left: 22px;
    border-left: 6px solid #7b929d;
  }
  .memorial_day ul li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 26px;
    margin: 0 0 18px;
  }
  .memorial_day ul li.n1,
  .memorial_day ul li.n2,
  .memorial_day ul li.n3,
  .memorial_day ul li.n4,
  .memorial_day ul li.n5 {
    position: relative;
    top: auto;
    left: auto;
  }
  .memorial_day ul li::before { left: -35px; top: 5px; }
  .dateview {
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    line-height: 22px;
    margin: 0 8px 0 0;
    padding: 0 10px;
    order: -1;
    border-radius: 11px;
    background: #2a7497;
    font-size: 12px;
    text-align: center;
  }
  .memorial_day ul li a { display: inline-block; margin-top: 0; }

  article { padding: 0 15px; }
  .l_box, .r_box { width: 100%; float: none; }
  .r_box { margin-top: 5px; }
  .r_box li img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto 12px;
    float: none;
  }
  .r_box li p { margin-top: 12px; }

  footer p {
    padding: 0 15px;
    line-height: 24px;
    text-align: center;
  }
}

@media screen and (max-width: 1040px) {
  .memorial_day ul {
    max-width: 330px;
    margin: 10px auto 0;
    box-sizing: border-box;
  }
  #nav ul li a,
  header h1 a {
    text-shadow: 0 0 8px rgba(255,255,255,.95), 0 1px 0 rgba(255,255,255,.85);
  }
}
