* { margin: 0; padding: 0 } ul li { list-style: none } a { text-decoration: none; color: #666; font-size: 20px } #canvas_bg { height: 100%; width: 100%; position: fixed; top: 0; left: 0 } body { position: relative; } .content { width: 80%; min-width: 720px; max-width: 1024px; position: relative; margin: 0 auto; z-index: 1; background-color: rgba(255, 255, 255, 0.8); } /* 导航 */ .header { width: 80%; min-width: 720px; max-width: 1024px; background-color: rgba(255, 255, 255, 0.9); border-bottom: 2px solid #3396e3; font-size: 20px; box-shadow: 0px 2px 12px #ccc; position: fixed; top: 0; z-index: 9999 } .header ul { overflow: hidden; padding: 0px 15px; } .header li { padding: 10px; float: right; } .header li a { display: inline-block; padding: 5px; transition: all 0.6s ease-in; border: 1px solid transparent; } .header li.active a { color: #fff; background-color: #3396e3; } /* 导航border动画 */ .c-btn { text-decoration: none; position: relative; display: inline-block; height: 100%; } .c-btn:after { content: ''; display: block; position: absolute; } .c-btn:before { content: ''; display: block; position: absolute; } .c-btn--border-line { background: none; box-sizing: border-box; box-shadow: inset 0 0 0 0px transparent; } .c-btn--border-line:after, .c-btn--border-line:before { box-sizing: border-box; border: 1px solid transparent; width: 0; height: 0; } .c-btn--border-line:after { top: 0; left: 0; transition: border-color 0s ease-in 0.8s, width 0.2s ease-in 0.6s, height 0.2s ease-in 0.4s; } .c-btn--border-line:before { bottom: 0; right: 0; transition: border-color 0s ease-in 0.4s, width 0.2s ease-in 0.2s, height 0.2s ease-in; } .c-btn--border-line:hover:after, .c-btn--border-line:hover:before { width: 100%; height: 100%; } .c-btn--border-line:hover:after { border-top-color: #3396e3; border-right-color: #3396e3; transition: width 0.2s ease-out, height 0.2s ease-out 0.2s; } .c-btn--border-line:hover:before { border-bottom-color: #3396e3; border-left-color: #3396e3; transition: border-color 0s ease-out 0.4s, width 0.2s ease-out 0.4s, height 0.2s ease-out 0.6s; } /* 介绍 */ .introduce { padding: 108px 30px 50px; border-bottom: 1px solid #ccc; box-shadow: 0px 2px 12px #ececec; /* background-color: rgba(255, 255, 255, 0.4); */ background-color: rgba(170, 170, 170, 0.4); display: flex; } .intro-img { flex: 1; } .intro-img img { width: 100%; border-radius: 50%; box-shadow: 0px 0px 20px #aaa; } .intro-text { font-size:23px; flex: 3; text-align: left; padding: 0 6%; color: #222; } .star-bright { margin-top: 40px; margin-bottom: 30px; padding: 0; max-width: 512px; border: 0; /* border-top: 5px solid #bfbfbf; */ border-top: 5px solid #888; display: inline-block; width: 100%; } .items, .contact_me { padding: 40px 0; text-align: center; border-bottom: 1px solid #ccc; box-shadow: 0px 2px 12px #ececec } .items h3, .contact_me h3 { color: #888; font-weight: bold; text-align: center; text-transform: uppercase; font-size: 30px; } .items ul { width: 90%; margin: 20px auto 0; overflow: hidden; } .items ul li { width: 48%; margin: 2% 1% 2% 1%; float: left; position: relative; } .items ul li img { width: 100%; } .items li a { width: 100%; display: inline-block; } figcaption { position: absolute; width: 80%; height: 80%; padding: 10%; text-align: left; top: 0; left: 0; color: #fff; background-color: rgba(0, 0, 0, 0.2) } .items li h4 { font-size: 18px; line-height: 30px; } .items li:hover figcaption { background-color: rgba(0, 0, 0, 0.5); } figcaption div { width: 92%; color: #666; margin-top: 2rem; font-size: 16px; line-height: 2rem; position: relative; z-index: 2; opacity: 0; padding-left: 4%; } figcaption div h5 { font-size: 18px; font-weight: 400 } /* 动画 */ .items li:hover h4 { border-bottom-color: transparent; } .items li:hover figcaption div { opacity: 1 } .items li:hover figcaption:before { -webkit-transform: translate3d(0, 6rem, 0) scale3d(1, 1, 1); transform: translate3d(0, 6rem, 0) scale3d(1, 1, 1); opacity: 0.8 } figcaption::before { position: absolute; top: 0; right: 10%; left: 10%; height: 6rem; background: #fff; content: ''; -webkit-transition: opacity 0.35s, -webkit-transform 0.35s; transition: opacity 0.35s, transform 0.35s; -webkit-transform: translate3d(0, 4em, 0) scale3d(1, 0.023, 1); transform: translate3d(0, 4em, 0) scale3d(1, 0.023, 1); -webkit-transform-origin: 50% 0; transform-origin: 50% 0; } .contact_me-email, .contact_me-emaila { color: #333; font-size: 18px; padding-bottom: 60px; } .contact_me-email a:hover { color: #3396e3; text-decoration: underline; } /* 用户 */ .user_identity{ margin-bottom: 20px; } .user_name{ display: inline; font-size:23px; width: 40%; } .user_level{ padding: 0.5%; display: inline; width: 10%; height: 20px; border-radius: 3px; background: #f17c46; font-weight: lighter; font-size:15px; color: rgb(252, 247, 240); }