html{ scroll-behavior: smooth;box-sizing: border-box; overflow-x: hidden; }
*,*::before,*::after { box-sizing:border-box;}

body{ margin:0; padding:0;font-family: source-han-serif-tc, serif; font-weight: 300; font-style: normal; font-size: 20px;overflow-x: hidden;/* background: url(images/bg.png);*/}
img{ width:auto; height: auto; max-width: 100%; max-height: 100%;}
dd{ margin: 0;}
ol{ padding: 0 0 0 1em;}
h1,h2,h3,h4{ font-weight: 400; margin:0; position: relative; z-index: 2;}
em,i{ font-style: normal;}
sub{ vertical-align: text-bottom; font-size: 0.65em;}

h1{ text-align: center; height: 100vh; width:100%; margin:0 auto; max-width: 1580px; animation: fadeIn 1.5s;}
h2{ margin: 0 auto 1em auto; width:70%; max-width: 443px;}
h3{ font-size: 1.3em; text-align: center;}

hr{ margin:5em auto; width:90%; border: 1px dotted #000;}

section{ padding:3em 0 6em 0;}

/**/
header{ position: absolute; inset: 0 0 0 0;}
.index{ padding:0;}
.hero{ height: 100vh; display: grid; align-items: center; /*background: linear-gradient(#fff 70%,#ffffff00 100%);*/ background: url(images/hero.png) no-repeat center center/cover;}
.booksinfo a{ text-decoration: none; color: inherit; text-align: center; }
.main,.sub{ width: 90%; max-width: 950px; margin: 0 auto; display: flex; gap:20px;}
.sub{ align-items: center;}
.main-img{ width:40%;}
.sub-img{ width:30%;}
.main-txt strong{ font-size: 1em; color:#3057a7;}
.main-txt p{ font-size: 0.8em;}
.sub-txt p{ color:#285a8a; font-size: 0.9em;}
.links{ display: flex; gap: 15px 0; width: 90%; max-width: 950px; margin: 0 auto 30px auto; font-size: 0.9em; align-items: center;}
.links a{ flex: 1;}
.links a:nth-of-type(n+2){ border-left: 1px solid #000;}
.border{ border: 1px solid #000; padding: 10px; display: block;width:90%; max-width: 950px; margin:30px auto 0 auto; font-size: 0.9em;}
.wrap{  width:90%; max-width:850px; margin: 0 auto;}
.special{width: 90%; max-width: 950px; margin: 100px auto; background: #ffffff9e; border-radius: 25px; padding:20px; position: relative;}
.special:before{ content: ''; display: block; position: absolute; top:0px; right: 60px; background:url(images/ribbon.png) no-repeat center top/contain; aspect-ratio: 127/280; width:60px;}

ul.love{ list-style: none; padding: 0; color:#3d6385; font-size: 0.9em;}
ul.love li{ position: relative; padding-left: 20px;}
ul.love li:before{ content: 'ღ'; position: absolute; left: 0; top:0;}
.booksinfo h2:nth-of-type(2){ margin-top: 100px;}

.chapter{  display: block; line-height: 1.1; margin: 3px;}

/**/
.about{ background: url(images/paper.png); position: relative;}
.about:before{ content: ''; display: block; aspect-ratio: 1920/373; width:100%; background: url(images/paper-top.png) no-repeat left top/cover; position: absolute; top:-50px;}
.about:after{ content: ''; display: block; aspect-ratio: 1920/373; width:100%; background: url(images/paper-bottom.png) no-repeat left bottom/cover; position: absolute; bottom:-50px; z-index: 0;}

.aboutauthor{ width:95%; margin: 0 auto; padding-top: 35px; display:grid; gap:20px; grid-template-columns: repeat(3,1fr); position: relative; z-index: 1;}
.author{ background: #fff; padding:1em; border-radius: 25px; border-top-left-radius: 0; position: relative;}
.author:before{ content: ''; display: block; background: url(images/tab-top.png) no-repeat left top/contain; position: absolute; top:-35px; left: 0; width:100%; height:35px;}
.about-img{ border-radius:200px; overflow: hidden; width:80%; margin:0 auto 1em auto;}
.about-img img{ display: block;}
.about-info{ font-size: 0.9em;}
.share{ display: flex; gap:5px;}
.share a{ text-decoration: none; color:#516477; border:1px solid #516477; padding:10px 20px; text-align: center;}
.share img{ height: 1.2em; vertical-align: text-bottom; margin-right: 5px;}
/**/
.activity{ background: url(images/page4.png) fixed center bottom/cover; padding:5em 0;}
.activity-info{  width:80%; max-width: 800px; margin:0 auto ;}
.activity dl{ position: relative; display: grid; grid-template-columns:5em 1fr; gap:20px 10px;box-sizing: border-box; margin:0 0 2em 0;}
.activity dt{ font-weight: 400;}
.activity dd{ font-size: 0.9em;}
fieldset{ font-size: 0.8em; font-family: source-han-sans-traditional, sans-serif; font-weight: 100; margin: 0 auto; border: 1px solid #000;}
fieldset li{ margin-bottom: 10px;}
legend{ text-align: center;}
/**/
.bookfair{ padding:100px 0 0 0; background: url(images/page-bookfair.png) no-repeat center bottom/cover;}
.bookfair h2+p{ width:90%; max-width: 950px;}
.bookzone{ display: grid; grid-template-columns: repeat(4, 205px); gap:20px; justify-content: center; width:90%; margin: 0 auto 100px auto;}
.book{ text-decoration: none; color: inherit;}
.book span{ display: block; text-align: center;}
.b-name{font-family:source-han-sans-traditional, sans-serif; font-size: 0.9em;}
b{ font-size: 1.3em; color:#516477; font-weight: 700; margin: 0 3px;}
/**/
footer{ text-align: center; font-size: 14px; padding:20px;}

@media screen and (max-width: 1280px) {
	body{ background-size: 30px 30px;}
	h2{ max-width: 300px;}
}
@media screen and (max-width: 1080px) {
	.hero{ height: auto; padding:35px 0;}
	h1{ height: auto;}
}
@media screen and (max-width: 768px) {
	body{ font-size: 18px;}
	.main,.sub{ flex-direction: column;}
	.main-img,.sub-img{ width:80%; margin: 0 auto;}
	.series{ grid-template-columns: 1fr; padding:20px;}
	.series:nth-of-type(even){ margin:30px auto;}
	.aboutauthor{ grid-template-columns: 1fr;}
	.bookzone{ grid-template-columns: repeat(2,1fr);}
	.links h4{ width:80px; padding:5px 10px; line-height: 1.1;}
	.activity dl{ padding: 50px; grid-template-columns:1fr;}
	
	.special:before{ right:10px;}
}
@media screen and (max-width:480px) {
	body{ font-size: 16px;}
}

/*TOP*/
#gotop{ display:block; cursor: pointer; position:fixed; bottom:20px; right:20px; z-index:9999; width:40px; height:40px; border-radius:50%; border:1px solid #000000;
	background:url(images/toparrow.png) no-repeat center; -webkit-transition:0.2s; -moz-transition:0.2s; transition:0.2s;}
#gotop:hover { bottom: 25px;}

/* po_bar */
#po_bar {  width:100%; margin:0 auto; height:25px; padding-top: 10px; position: relative; z-index:3;}
.logo{ display:block; width:90px; position:absolute; left:20px;}
ul#option { position:absolute; top:10px; right:20px; margin:0;}
.active+ul#option {display: block;}
ul#option li { display:inline-block; font-size:15px; margin-left:10px; vertical-align:middle; }
ul#option li img { vertical-align:middle; height: 18px;}
ul#option li a { color:#1c81ad; text-decoration: none;}
ul#option li a:hover { text-decoration:underline;}
.btn-menu { display:none;}
@media screen and (max-width: 1000px) {
    .logo{ left:10px; top:3px;}
	.logo img { width:80px; height:34px;}
	.btn-menu { display:block; width:32px; height:32px; position:absolute; top:10px; right:10px; background:url(images/icon-menu.png) no-repeat center; background-size:32px 32px; z-index:101;}
	.btn-menu.active{ background:url(images/icon-xx.png) no-repeat center; background-size:32px 32px;}
	ul#option { display:none; margin:0; position: fixed; right: 0; top:0; padding: 50px 5px 20px 5px;  background:#c5c9ce; width:50%; max-width:300px; height: 100vh;}
 	ul#option li{ display: block; text-align: center; margin: 20px 0;}
	ul#option li a {text-shadow:none;}

    /*TOP*/
	#gotop{ bottom:50px; right:10px;}
	#gotop a{ width:35px; height:35px; border-radius:50%; background-size:10px 8px;}
	#gotop a:hover { background-size:10px 8px;}
}

@keyframes fadeIn {
	0%{ opacity: 0; transform: scale(0.9);}
	100%{ opacity: 1; transform: scale(1);}
}