* { margin: 0; padding: 0; box-sizing: border-box; } $desktop: 1025px; $table: 1024px; $moblie: 767px; $navbgcolor: #eb144c; @media screen and(max-width:$table) { } @media screen and(max-width:$moblie) { } .container-fluid { width: 80vw; margin: 0 auto; @media screen and(max-width:$moblie) { width: 100vw; } } // 主選單 #Navigation { width: 100vw; background-color: $navbgcolor; color: #fff; position: fixed; opacity: 1 !important; z-index: 20; #logo { padding-top: 3vw; @media screen and(max-width:$moblie) { padding: 15px; } img { width: 180px; @media screen and(max-width:$moblie) { width: 140px; } } } #link { padding: 4vw 1vw 2vw 1vw; @media screen and(max-width:$moblie) { display: none; } a { text-decoration: none; color: #fff; letter-spacing: 1px; font-size: 0.9rem; font-weight: 600; cursor: pointer; padding: 15px; position: relative; :hover { opacity: 0.8; } &:after { content: ""; display: block; width: 80%; height: 3px; background-color: #fff; position: absolute; left: 12%; bottom: 0; transition: all 0.3s; opacity: 0; } &:hover:after { width: 80%; opacity: 1; } @media screen and(max-width:$table) { padding: 5px; padding-top: 2vw; } } } #menu-btn1 { position: absolute; right: 2vw; top: 5vw; width: 15vw; z-index: 6; @media screen and(min-width:$desktop) { display: none; } @media screen and(min-width:768px) { display: none; } } } // 行動版彈跳式選單 #menu-box { width: 40vw; right: 0px; position: fixed; z-index: 20; overflow: hidden; display: none; @media screen and(min-width:$desktop) { display: none; } hr { margin: 5px auto !important; width: 25vw; background: #fff; opacity: 1 !important; } #menu-box2 { padding-bottom: 5vw; position: relative; width: 40vw; background-color: $navbgcolor; z-index: 7; text-align: center; @media screen and(max-width:$moblie) { } @media screen and(max-width:350px) { } .close { padding: 30px 15px 15px 15px; } a { display: inline-block; text-decoration: none; color: #fff; font-size: 14px; font-weight: 900; text-align: center; padding: 0 !important; } } } // banner #banner { width: 100vw; display: inline-block; background: #fff; #banner-container { width: 80vw; margin: 50px auto; padding-bottom: 5vw; @media screen and(max-width:$moblie) { width: 100vw; margin: 0; padding-bottom: 15vw; } img { padding-top: 10vw; width: 80vw; object-fit: cover; @media screen and(max-width:$moblie) { padding-top: 15vw; width: 100vw; } } } } // 最新課程-電腦版 #sec01 { padding-bottom: 10vw; background: #fff; @media screen and(max-width:$moblie) { display: none; } #sec01-title { margin-bottom: 50px; h1 { text-align: center; color: #e02d4b; font-size: 45px; font-weight: 900; padding: 5px 10px; @media screen and(max-width:$moblie) { font-weight: 900; font-size: 32px; } } hr { width: 5vw; height: 5px; color: #e02d4b; margin: 10px auto; opacity: 1 !important; @media screen and(max-width:$moblie) { width: 30vw; } } } .learn-more { width: 45%; } #sec01-container { .card { box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3); border-radius: 10px; img { padding: 5px; height: 150px; object-fit: cover; } .card-title { font-weight: 900; } } } } // 最新課程-手機板 #sec01-moblie { padding-top: 5vw; padding-bottom: 5vw; background: #fff; position: relative; overflow: hidden; .arrow-table { position: fixed; width: 25px; right: 15px; bottom: 240px; z-index: 6; @media screen and(max-width:350px) { right: 10px; } } @media screen and(min-width:$desktop) { display: none; } #sec01-moblie-header { h1 { text-align: center; color: #e02d4b; font-size: 45px; font-weight: 900; padding: 5px 10px; @media screen and(max-width:$moblie) { font-weight: 900; font-size: 32px; } } hr { margin: 10px auto !important ; width: 25vw; height: 5px; color: #e02d4b; margin: 10px; opacity: 1 !important; } } #sec01-moblie-container { padding-top: 10vw; .col { margin: 10px; .card { img { height: 150px; object-fit: cover; } box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3); border-radius: 10px; .card-title { font-weight: 900; } .learn-more { width: 120px; } } } } } // sec02 TOP排名 電腦版 #sec02 { background: $navbgcolor; padding: 5vw 0px; @media screen and(max-width:$moblie) { display: none; } #sec02-container { width: 90vw; padding: 15px; font-weight: 900; color: #fff; position: relative; // 電腦版top圖片排行 #sec02-top-box { #sec02-top-title { text-align: center; hr { width: 5vw; height: 5px; color: #fff; margin: 10px auto; opacity: 1 !important; @media screen and(max-width:$moblie) { width: 30vw; } } } position: relative; #sec02-content { position: absolute; top: -150px; left: 300px; } .sec02-box1 { color: #fff; img { display: inline; width: 200px; height: 200px; object-fit: cover; } .sec02-top-text { font-size: 20px; span { font-size: 30px; } } } } } } // sec02 TOP排名 手機板 #sec02-moblie { padding-top: 3vw; @media screen and(min-width:$desktop) { display: none; } #sec02-moblie-header { h1 { text-align: center; color:$navbgcolor; font-size: 45px; font-weight: 900; padding: 5px 10px; @media screen and(max-width:$moblie) { font-weight: 900; font-size: 32px; } } hr { margin: 10px auto !important; width: 25vw; height: 5px; color:$navbgcolor; margin: 10px; opacity: 1 !important; } } #sec02-container { background: linear-gradient(180deg, #fff 20%, transparent 40%, #eb144c 20%); padding: 15px; font-weight: 900; color: #fff; text-align: right; padding: 20vw 0; #sec02-content { position: relative; } #sec02-top-box { @media screen and(max-width:350px) { left: 10px; } .sec02-box1 { color: #fff; #top1 { @media screen and(max-width:350px) { width: 100px; height: 130px; } } img { @media screen and(max-width:350px) { width: 70px; height: 100px; } } .sec02-top-text { font-size: 12px; text-align: center; @media screen and(max-width:350px) { } span { font-size: 30px; @media screen and(max-width:350px) { font-size: 25px; } } } } } } } // sec03 排名table-電腦版 #sec03 { padding-bottom: 5vw; @media screen and(max-width:$moblie) { display: none; } #sec03-table { .sec03-table-title { font-family: 微軟正黑體; font-weight: 900; padding: 15px; font-size: 35px; } .table { th { font-size: 40px; display: table-cell; vertical-align: middle; } td { padding: 15px; } img { width: 80px; } .sec03-table-text { padding: 10px; display: table-cell; vertical-align: middle; h1 { font-size: 20px; margin: 0; } p { margin: 0; } } } } } // sec03排名table-手機板 #sec03-moblie { position: relative; .arrow-table { position: fixed; width: 25px; right: 15px; bottom: 250px; z-index: 6; @media screen and(max-width:350px) { right: 10px; bottom: 200px; } } .sec03-table-title, .sec03-table-title2 { font-family: 微軟正黑體; font-weight: 900; font-size: 14px; display: inline-block; color: #9b9b9b; } .contant-toggle { display: inline-block; color: #000; padding-bottom: 10px; border-bottom: 2px solid #000; } #sec03-slider { padding-top: 5vw; .slick-slide img { display: inline; } #sec03-slider1, #sec03-slider2 { margin: 0 5px; @media screen and(max-width:350px) { margin: 0 5px; } } .table { th { font-size: 40px; display: table-cell; vertical-align: middle; padding: 15px; @media screen and(max-width:350px) { font-size: 30px; } } td { display: table-cell; vertical-align: middle; padding: 15px; padding: 10px; @media screen and(max-width:350px) { padding: 0px; } } img { width: 70px; } .sec03-table-text { padding: 0px 0px 0px 3px; display: table-cell; vertical-align: middle; @media screen and(max-width:350px) { padding: 0px; } h1 { font-size: 14px; margin: 0; } p { margin: 0; font-size: 12px; } } } } @media screen and(min-width:$desktop) { display: none; } } // sec04 專欄報導-電腦版 #sec04 { background: linear-gradient(180deg, #fff 50%, #ededf9 50%); padding-bottom: 10vw; @media screen and(max-width:$moblie) { display: none; } #sec04-title { margin-bottom: 50px; h1 { text-align: center; color: $navbgcolor; font-size: 45px; font-weight: 900; padding: 5px 10px; @media screen and(max-width:$moblie) { font-weight: 900; font-size: 32px; } } hr { width: 5vw; height: 5px; color: $navbgcolor; margin: 10px auto; opacity: 1 !important; @media screen and(max-width:$moblie) { width: 30vw; } } } .learn-more { width: 45%; } #sec04-container { .card { box-shadow: 0 10px 1px $navbgcolor; border-radius: 10px; img { padding: 5px; height: 150px; object-fit: cover; } .card-title { font-weight: 900; } } } } // sec04專欄報導 手機板 #sec04-moblie { padding-top: 5vw; padding-bottom: 5vw; background: #fff; position: relative; overflow: hidden; .arrow-table { position: fixed; width: 25px; right: 15px; bottom: 240px; z-index: 6; @media screen and(max-width:350px) { right: 10px; } } @media screen and(min-width:$desktop) { display: none; } #sec04-moblie-header { h1 { text-align: center; color: $navbgcolor; font-size: 45px; font-weight: 900; padding: 5px 10px; @media screen and(max-width:$moblie) { font-weight: 900; font-size: 32px; } } hr { margin: 10px auto !important ; width: 25vw; height: 5px; color: $navbgcolor; margin: 10px; opacity: 1 !important; } } #sec04-moblie-container { padding-top: 10vw; .col { margin: 10px; .card { img { height: 150px; object-fit: cover; } box-shadow: 0 10px 1px $navbgcolor; border-radius: 10px; .card-title { font-weight: 900; } .learn-more { width: 120px; } } } } } // sec05 課程分類-電腦版 #sec05 { padding-top: 5vw; padding-bottom: 5vw; #sec05-title { margin-bottom: 50px; h1 { text-align: center; color: $navbgcolor; font-size: 45px; font-weight: 900; padding: 5px 10px; @media screen and(max-width:$moblie) { font-weight: 900; font-size: 32px; } } hr { width: 5vw; height: 5px; color: $navbgcolor; margin: 10px auto; opacity: 1 !important; @media screen and(max-width:$moblie) { width: 30vw; } } } background-image: url(); #sec05-container { img { width: 78vw; margin: 30px 0; @media screen and(max-width:$moblie) { width: 95vw; } } } } // sec06 合作對象 - 電腦版 #sec06 { padding-top: 5vw; padding-bottom: 5vw; #sec06-container-box { padding-top: 8vw; background: url(./img/sec06/sec06-1.png), linear-gradient(180deg, transparent 50%, #fff 30%); background-size: contain; background-repeat: no-repeat; background-blend-mode: overlay; } #sec06-title { width: 80vw; margin: 0 auto; text-align: right !important; h1 { color: $navbgcolor; font-size: 45px; font-weight: 900; padding: 5px 10px; margin-top: 50px; margin-right:50px; @media screen and(max-width:$moblie) { font-weight: 900; font-size: 32px; } } hr { display: inline-block; margin-right:80px; width: 8vw; height: 5px; color: $navbgcolor; opacity: 1 !important; @media screen and(max-width:$moblie) { width: 30vw; } } } #sec06-container { text-align: center; .card { box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3); background: #fff; padding-top: 5vw; padding-bottom: 5vw; border: none; .sec09-7{ width: 200px; } .adv4 { display: flex; align-items: center; img { align-items: center; } } } .col-3 { margin: 10px 0; @media screen and(max-width:$desktop) { padding: 15px; } @media screen and(max-width:$moblie) { padding: 5px; } img { object-fit: cover; @media screen and(max-width:$moblie) { padding: 0px; } } } .sec09-1 { padding: 50px; @media screen and(max-width:$moblie) { padding: 20px; } } } } // 頁尾 #footer { width: 100vw; text-align: center; line-height: 2; background: $navbgcolor; color: #fff; padding-bottom: 3vw !important; .footer-link { padding-top: 3vw; a { text-decoration: none; font-size: 20px; padding: 10px; color: #fff; @media screen and(max-width:$moblie) { font-size: 14px; padding: 0 !important; } @media screen and(max-width:400px) { font-size: 12px; } span { font-size: 28px; @media screen and(max-width:$moblie) { font-size: 16px; } @media screen and(max-width:350px) { font-size: 14px; } } } } .text { padding-top: 3vw; a { text-decoration: none; color: #fff; } h2 { font-size: 20px; margin: 10px; letter-spacing: 1px; display: inline; @media screen and(max-width:$moblie) { display: block; font-size: 16px; margin: 8px; } } p { margin: 0 !important; } } }