@charset "UTF-8";
/* 平板：991px,576px ; 手機： 360px */
/* 平板1尺寸 */
@media screen and (max-width: 991px) {
  .distable_nav {
    display: block;
  }

  .fixed_bottom {
    display: none;
  }

  .about_bg {
    background-size: 150% auto;
    background-position: center 0;
  }

  #home {
    padding-top: 80px;
  }
  #home .col-md-6 {
    padding: 15% 5%;
  }
  #home h2 {
    font-size: 20px;
  }
  #home span {
    position: absolute;
    margin-left: 4px;
  }
  #home .block {
    width: 300px;
    height: 300px;
  }
  #home .inHome {
    bottom: 3%;
    left: 31%;
  }

  #about .left, #about .right {
    display: none;
  }
  #about .col-sm-12 {
    display: block;
    padding: 20% 28px;
  }
  #about .col-sm-12 p {
    margin-top: 10%;
  }
  #about .p1, #about .p2 {
    transform: translateY(-60px);
  }
  #about .p1 img, #about .p2 img {
    width: 80%;
  }
  #about .p2 {
    left: 150px;
    display: none;
  }
  #about .p2 img {
    width: 60px;
  }

  #resume {
    z-index: 3;
  }
  #resume:before {
    content: "";
    display: block;
    position: absolute;
    width: 150%;
    height: 200px;
    background-color: var(--bgcolor);
    z-index: 30;
    top: -200px;
    left: -60px;
  }
  #resume .col-md-12 {
    margin-top: -20px;
  }

  #skills .col-md-1 {
    display: none;
  }
  #skills .col-md-10 {
    gap: 40px;
    width: 100%;
  }

  #works {
    padding: 10% 0;
  }

  #contact .col-md-7 {
    padding-top: 240px;
  }
  #contact .col-md-5 .block {
    width: 240px;
    height: 240px;
  }
  #contact .contact_bg {
    background-size: 140% auto;
    top: 0;
  }
}
/* 小修works 和 contact */
@media screen and (max-width: 767.5px) {
  #works {
    height: auto;
  }
  #works .col-md-4 {
    transform: scale(0.8);
    overflow: visible;
  }
  #works .block {
    width: 100%;
    height: 100%;
    overflow: visible;
  }
  #works .block .title {
    opacity: 1;
    top: 100%;
    transform: translate(-55%, 0);
    color: var(--text_color);
  }
  #works .block img {
    transform: translate(-5%, -5%);
  }
  #works .block:hover {
    border: none;
  }
  #works .block:hover img {
    transform: scale(1) translate(-5%, -5%);
  }
  #works .block:hover .bg {
    opacity: 0;
  }

  #contact .col-md-7 h3:after {
    content: "!";
    display: inline-block;
    position: relative;
    right: 0;
  }
  #contact .col-md-7 .mail {
    margin-top: 40px;
  }
  #contact .col-md-5 {
    display: none;
  }
  #contact .contact_bg {
    top: 0;
  }
}
/* 平板2尺寸 */
@media screen and (max-width: 756px) {
  .hr {
    width: 140px;
    height: 6px;
  }

  #home {
    height: auto;
  }
  #home .row1 {
    display: none;
  }
  #home .row2 {
    display: block;
  }
  #home .col-md-12:first-child {
    padding: 100px 0 0 0;
  }
  #home .col-md-12:first-child .phone_title {
    padding: 0;
    padding-top: 40px;
  }
  #home .col-md-12:first-child .phone_title h2, #home .col-md-12:first-child .phone_title h4 {
    width: auto;
  }
  #home .col-md-12:first-child .phone_title h2 {
    letter-spacing: 0.8rem;
    font-weight: 400;
    font-size: 36px;
    padding-bottom: 10px;
  }
  #home .col-md-12:first-child .phone_title h4 {
    /* 讓文字填滿空格兩側 */
    text-align-last: justify;
    font-weight: 300;
    font-size: 22px;
    padding-bottom: 42px;
  }
  #home .col-md-12:first-child .phone_title .inHome {
    position: relative;
    width: auto;
    left: 0;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #home .col-md-12:first-child .phone_title .inHome ul li {
    font-size: 16px;
  }
  #home .col-md-12:first-child .phone_title .hr {
    margin: auto;
  }

  .bgimg {
    transform: translateY(20%);
  }

  .about_bg:after {
    content: "";
    display: block;
    width: 100%;
    height: 250px;
    background-color: var(--bgcolor);
    position: absolute;
    bottom: 0;
    z-index: 5;
  }

  #about {
    display: flex;
    justify-content: center;
  }
  #about .col-sm-12 {
    padding: 35% 28px;
  }

  #resume:before {
    display: none;
  }

  #skills .skill_bg {
    transform: translateY(0);
  }

  #contact {
    margin-top: 0;
  }
  #contact .col-md-7 {
    padding-left: 0;
  }
  #contact .contact_bg {
    transform: translateY(-5%);
    top: none;
    bottom: 0;
    background-size: auto 100%;
  }
  #contact .contact_bg:before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 20%;
    left: 0;
    top: 0;
    background-color: var(--bgcolor);
  }
  #contact .row {
    padding-top: 60px;
  }
}
/* 測試 */
@media screen and (max-width: 430px) {
  .navbar {
    padding: 24px 12px;
  }

  #home .row .col-md-12 {
    width: 100%;
    padding: 0;
    padding-top: 80px;
    margin: 0;
  }
  #home .block {
    width: 250px;
    height: 250px;
    left: 50%;
    transform: translateX(-50%);
  }
  #home .block:before, #home .block:after {
    width: 30px;
    height: 30px;
  }
  #home .block:before {
    left: -15px;
  }
  #home .block:after {
    right: -15px;
  }
  #home .row .col-md-12 .phone_title h2 {
    font-size: 28px;
  }
  #home .row .col-md-12 .phone_title h4 {
    font-size: 20px;
  }
  #home .row .col-md-12 .phone_title a {
    font-size: 32px;
  }

  .about_bg {
    transform: translateY(12%);
    background-size: 180% 800px;
  }

  #about {
    padding: 0;
  }
  #about:after {
    display: none;
  }
  #about .col-sm-12 {
    padding: 50% 10px;
    margin-top: 100px;
  }
  #about h3 {
    text-align: center;
  }
  #about .hr {
    margin: auto;
  }
  #about .col-sm-12 p {
    letter-spacing: 0.1rem;
    line-height: 1.6rem;
    margin-top: 15%;
  }

  #resume:before {
    display: block;
    height: 40px;
    top: 100%;
  }
  #resume .col-md-12.timeline .line {
    left: 90%;
    top: 4%;
    transform: translateX(0);
  }
  #resume .col-md-12.timeline span.born {
    top: -10px;
    left: 18%;
  }
  #resume .col-md-12.timeline span.tbc {
    top: 113.5%;
    left: 25%;
  }
  #resume .col-md-12.timeline .timeblock {
    transform: translateY(4%);
  }
  #resume .col-md-12.timeline .l_block {
    right: 0;
  }
  #resume .col-md-12.timeline .r_block {
    left: 0;
  }

  #skills .col-md-10.col-sm-12 {
    gap: 80px;
  }

  #works {
    padding: 30% 0;
    padding-bottom: 0;
  }
  #works .row:last-child {
    padding: 40px 0;
    padding-top: 0;
  }

  #contact {
    margin-top: 0;
  }
  #contact .contact_bg {
    height: 700px;
    transform: translateY(60px);
    background-position: 55% 100%;
  }
  #contact .row {
    padding-top: 0;
  }
}
@media screen and (max-width: 360px) {
  .navbar {
    padding: 24px 12px;
  }

  #home .row .col-md-12 {
    width: 100%;
    padding: 0;
    padding-top: 80px;
    margin: 0;
  }
  #home .block {
    width: 250px;
    height: 250px;
    left: 50%;
    transform: translateX(-50%);
  }
  #home .block:before, #home .block:after {
    width: 30px;
    height: 30px;
  }
  #home .block:before {
    left: -15px;
  }
  #home .block:after {
    right: -15px;
  }
  #home .row .col-md-12 .phone_title h2 {
    font-size: 28px;
  }
  #home .row .col-md-12 .phone_title h4 {
    font-size: 20px;
  }
  #home .row .col-md-12 .phone_title a {
    font-size: 32px;
  }

  .about_bg {
    transform: translateY(12%);
    background-size: 180% 800px;
  }

  #about {
    padding: 0;
  }
  #about:after {
    display: none;
  }
  #about .col-sm-12 {
    padding: 50% 10px;
    margin-top: 100px;
  }
  #about h3 {
    text-align: center;
  }
  #about .hr {
    margin: auto;
  }
  #about .col-sm-12 p {
    letter-spacing: 0.1rem;
    line-height: 1.6rem;
    margin-top: 15%;
  }

  #resume:before {
    display: block;
    height: 40px;
    top: 100%;
  }
  #resume .col-md-12.timeline .line {
    left: 90%;
    top: 4%;
    transform: translateX(0);
  }
  #resume .col-md-12.timeline span.born {
    top: -10px;
    left: 18%;
  }
  #resume .col-md-12.timeline span.tbc {
    top: 113.5%;
    left: 25%;
  }
  #resume .col-md-12.timeline .timeblock {
    transform: translateY(4%);
  }
  #resume .col-md-12.timeline .l_block {
    right: 0;
  }
  #resume .col-md-12.timeline .r_block {
    left: 0;
  }

  #skills .col-md-10.col-sm-12 {
    gap: 80px;
  }

  #works {
    padding: 30% 0;
    padding-bottom: 0;
  }
  #works .row:last-child {
    padding: 40px 0;
    padding-top: 0;
  }

  #contact {
    margin-top: 0;
  }
  #contact .contact_bg {
    height: 700px;
    transform: translateY(60px);
    background-position: 55% 100%;
  }
  #contact .row {
    padding-top: 0;
  }
}