@import url('https://fonts.googleapis.com/css?family=Noto+Sans+TC:300,400,500,700,900|Roboto:400,500,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Noto+Serif+TC:wght@400;500;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Grenze+Gotisch:wght@100..900&family=Noto+Serif+TC&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
@charset "utf-8";
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}
/*end normalize*/

html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}
/* Extract from normalize.css by Nicolas Gallagher and Jonathan Neal git.io/normalize */
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}
article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}
audio,canvas,progress,video{display:inline-block}progress{vertical-align:baseline}
audio:not([controls]){display:none;height:0}[hidden],template{display:none}
a{
	background-color: transparent;
	-webkit-text-decoration-skip: objects;
}
a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}
dfn{font-style:italic}mark{background:#ff0;color:#000}
small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
sub{bottom:-0.25em}sup{top:-0.5em}figure{margin:1em 40px}img{border-style:none}svg:not(:root){overflow:hidden}
code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}hr{box-sizing:content-box;height:0;overflow:visible}
button,input,select,textarea{font:inherit;margin:0}optgroup{font-weight:bold}
button,input{overflow:visible}button,select{text-transform:none}
button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}
button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner{border-style:none;padding:0}
button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring{outline:1px dotted ButtonText}
fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em}
legend{color:inherit;display:table;max-width:100%;padding:0;white-space:normal}textarea{overflow:auto}
[type=checkbox],[type=radio]{padding:0}
[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}
[type=search]{-webkit-appearance:textfield;outline-offset:-2px}
[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}
::-webkit-input-placeholder{color:inherit;opacity:0.54}
::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}
/* End extract */



html, body{
	font-family: 'Roboto', sans-serif;
	font-family: 'Noto Sans TC', sans-serif;
	font-weight: 400;
	font-size: 17px;
	line-height: 1.7;
	position: relative;
	height: 100%;
	color: #333;
	margin: auto;
	}



a {
		text-decoration: none;
		transition:all .3s;
}

:root {
  --main-color: #8B6B37;/*金*/
  --main-colorDarker: #6f511f;
  --main-colorLighter:#9c8121;
  --main-subcolor:#d5a31a;/*橘黃*/
  --main-width:1500px;
}

@media screen and (max-width: 1600px) {
	:root {
		 --main-width:90%;
	}
}

button, a {
	cursor:pointer;
	transition: all .3s;
}


input[type=text],
input[type=tel],
input[type=password],
input[type=number],
input[type=email],
input[type=date],
input[type=month],
input[type=file],
select,
textarea {
	width: 100%;
  padding: 3px 6px;
  margin:0;
  display: inline-block;
	border:solid 1px #ccc;
  background: #fff;
  outline:none;
	border-radius:6px;
}
input[type=text]:focus,
input[type=tel]:focus,
input[type=password]:focus,
input[type=number]:focus,
input[type=email]:focus,
input[type=date]:focus,
input[type=month]:focus,
input[type=file]:focus,
select:focus,
textarea:focus {
	width:100%;
	border:solid 1px var(--main-color);
	background: #fff;
	padding: 3px 6px;
}


/* The radio */
.radio {
	display:inline-block;
	position: relative;
	margin-bottom: 15px;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	padding:0 20px 0 30px;
	color:#666;
}

.radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio .checkmark {
	position: absolute;
	top: 4px;
	left: 0;
	height: 20px;
	width: 20px;
	background-color: #fff;
	border-radius: 50%;
	border:solid 1px #ccc;
}

.radio:hover input ~ .checkmark {
    background-color: #C9C9C9;
}

.radio input:checked ~ .checkmark {
	background-color:var(--main-color);
	border:solid 1px var(--main-color);
}

.radio .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio input:checked ~ .checkmark:after {
    display: block;
}

.radio .checkmark:after {
 	top: 5px;
	left: 5px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
}


/*The checkbox*/
.checkbox {
	display: inline-block;
	position: relative;
	padding-left: 35px;
	margin-bottom: 12px;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	font-size:17px;
	border-radius:6px;
	color:#666;
	width: 100%;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}


.checkbox .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #fff;
	border:solid 1px #ccc;
}

.checkbox:hover input ~ .checkmark {
  background-color: #C9C9C9;
}

.checkbox input:checked ~ .checkmark {
	background-color: var(--main-color) !important;
	border:solid 1px var(--main-color);
}

.checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox input:checked ~ .checkmark:after {
  display: block;
}

.checkbox .checkmark:after {
  left: 9px;
  top: 5px;
  width: 8px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.gototop{
	width: 50px;
	height: 50px;
	line-height: 50px;
	font-family: verdana;
	text-align: center;
	background: rgb(187 139 10 / 90%);
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 2px 20px 0 rgba(0, 0, 0, 0.19);
	color: #fff;
	position: fixed;
	bottom: 100px;
	right: 30px;
	border-radius: 50%;
	text-decoration: none;
	cursor: pointer;
	display: none;
	z-index: 50;
	border: 1px solid #FFFFFF;
	opacity: 0.7;
	filter: alpha(opacity=70); /* For IE8 and earlier */
	font-size: 13px;
}
.gototop i {
	font-size:20px;
	padding-top:13px;
	}


#overlay {
	position: fixed;
	display: none;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0,0,0,0.3);
	z-index: 90;
	cursor: pointer;
}

.modal {
  display: none; 
  position: fixed;
  z-index: 99;
  padding-top: 100px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.4); 
}


.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  max-width:400px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
	color:#333;
	border-radius:10px;
}
@media screen and (max-width: 600px) {
	.modal-content {
		width:85%;
	}
}


@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}


.modal-content .close {
  color: #9f9f9f;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.modal-content .close:hover,
.modal-content .close:focus {
  color: #666;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 2px 16px;
  background-color: var(--main-color);
  color: white;
	border-radius: 8px 8px 0 0;
}
.modal-header h2 {
	margin: 6px 10px;
}
.modal-body {
	padding: 15px 25px 0;
	font-size: 20px;
	text-align: center;
}
.modal-body b {
	color:var(--main-color);
}

.modal-footer {
  padding: 12px 16px;
  background-color: #e3e3e3;
  color: white;
	text-align: center;
	border-radius: 0 0 8px 8px;
}
.modal-footer button,
.modal-footer a {
	border:none;
	outline: none;
	background-color: var(--main-color);
  color: white;
	border-radius:8px;
	padding: 8px 20px;
	margin: 0 5px;
	transition: all .3s;
}
.modal-footer button:hover,
.modal-footer a:hover {
	background-color: var(--main-colorDarker);
}


header {
	display: block;
	width: 100%;
	padding: 0;
	position: relative;
    z-index: 50;
	background: linear-gradient(to right, #8b6b37 0%, #d5a31a 100%);
}


.header {
	display: flex;
	justify-content: space-between;
	padding: 8px 30px;
	margin: auto;
	flex-wrap:nowrap;
	color:white;
}

@media screen and (max-width: 1600px) {
	.header {
		padding: 6px 15px;
	}
}

.bars {
	display: none;
}

.header .logo,
.header .logo img{
	display: block;
	height: 50px;
}

@media screen and (max-width: 1600px) {
	.header .logo,
	.header .logo img {
		height: 40px;
	}
}
.header .top-menu ul {
	display: inline-block;
	list-style: none;
	padding: 0;
	margin: 0;
}
.header .top-menu li {
	display: inline-block;
	padding: 10px 15px;
	margin: 0;
}
@media screen and (max-width: 1600px) {
	.header .top-menu li {
	padding: 5px 15px;
}
	}
.header .top-menu a {
	color:white;
}
.header .top-menu a:hover {
	color:#fffb5b;
}


.dropbtn {
	display: inline-block;
	padding: 10px 15px;
  border: none;
  cursor: pointer;
	color:white;
}
.dropbtn i {
	padding: 0 6px;
}
.dropbtn .fa-user-circle {
	font-size: 22px;
	color:#ffe08d;
}


.dropdown {
  float: right;
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #d1a01b;
  min-width: 120px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  right: 0;
  z-index: 60;
	margin-top: 8px;
}

.dropdown-content a {
  color: black;
  padding: 6px 16px;
  text-decoration: none;
  display: block;
}
.dropdown-content a:hover {background-color: #bd911a;}

.show {display: block;}

@media screen and (max-width: 1200px) {
	.header .top-menu ul,
	.dropdown {
		display: none;
	}
	.bars {
	display:inline-block;
		width: 30px;
		padding: 0px;
		font-size: 28px;
		line-height: normal;
	}
}

/*手機板側邊選單*/
.side-mb {
	display: block;
	text-align: center;
	color:white;
	padding-bottom: 20px;
	margin-bottom: 10px;
	border-bottom: solid 1px #edc355;
}
.side-mb i {
	font-size: 68px;
	padding: 0 0 20px;
}
.side-mb a {
	display: inline-block;
	border:solid 1px #fff;
	padding: 2px 15px;
	border-radius:5px;
	margin-left: 20px;
}


.sidenav {
	height: 100%;
	width: 0;
	position: fixed;
	z-index: 99;
	top: 0;
	left: 0;
	background: linear-gradient(to bottom, #8b6b37 0%, #d5a31a 100%);
	overflow-x: hidden;
	transition: 0.5s;
	padding-top: 60px;
	padding-bottom: 100px;
	box-shadow: -8px 0px 8px rgba(0,0,0,0.25);
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 20px;
    font-size: 32px;
    margin-left: 50px;
}
.sidenav a {
	color: #FFFFFF;
	text-decoration: none;
}

.sidenav ul {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
}
.sidenav ul ul {
	margin: 0px;
	padding: 0px;
	display: none;
}
.sidenav ul ul ul {
	margin: 0px 0px -1px;
	padding: 0px;
	display: none;
}
.sidenav li {
	display: block;
}
.sidenav li li {
	background-color: #FFFFFF;
	border-bottom: 1px solid #E7E7E7;
	color: #333;
}
.sidenav li li li {
	background-color: #f9c7d2;
}
.sidenav li a {
	padding: 8px 20px;
	color: #FFF;
	text-decoration: none;
	display: block;
	padding-left: 45px;
}
.sidenav li li a {
	color: #666666;
}
.sidenav li li li a {
	color: #936b6b;
	padding-left: 45px;
}
.sidenav li a:hover, .sidenav li a:active, .sidenav li a:focus {
	color: #FFFFFF;
	background-color: #c39621;
}
.sidenav li li a:hover, .sidenav li li a:active, .sidenav li li a:focus {
	color: #333333;
	background-color: #FFFFFF;
}

.sidenav li i {
	padding-right: 6px;
}
.sidenav li i.fa-angle-down {
	float: right;
	padding-top: 6px;
	padding-right: 0px;
}
.sidenav li img {
	width: 24px;
	height: auto;
	padding-right: 6px;
	margin-bottom: -3px;
	}


@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}


.side-menu .side-mb-menu {
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: solid 1px #edc355;
}


/*手機版側邊選單結束*/




.banner {
	width: 100%;
	display: block;
	padding: 0;
	margin: 0;
}
swiper-container {
      width: 100%;
      height: 100%;
    }

    swiper-slide {
      text-align: center;
      font-size: 18px;
      background: #444;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    swiper-slide img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

.main-container {
	width: var(--main-width);
	margin: auto;
	padding: 0 0 80px;
	min-height: 500px;
}
@media screen and (max-width: 1200px) {
	.main-container {
		width: 95%;
		padding: 0 0 50px;
	}
}

.sub-banner {
	display: block;
	background: url("gold-bg.png");
	width: 100%;
}
.banner-two {
	display: grid;
	grid-template-columns: 48% 48%;
	justify-content: space-between;
	padding: 60px 0;
	width: var(--main-width);
	margin: auto;
}
@media screen and (max-width: 767px) {
	.banner-two {
	display: block;
		padding: 10px 0 20px;
}
}

.banner-four {
	display: grid;
	grid-template-columns: 24% 24% 24% 24%;
	justify-content: space-between;
	padding: 25px 0;
}
@media screen and (max-width: 767px) {
	.banner-four {
	grid-template-columns: 49% 49%;
		padding: 10px 0 30px;
}
}
.banner-two img,
.banner-four img {
	width: 100%;
}
.banner-two img:hover,
.banner-four img:hover {
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.subject-box {
	display: block;
	width: var(--main-width);
	margin: auto;
	padding: 70px 0;
}
@media screen and (max-width: 1200px) {
	.subject-box {
	padding: 50px 0;
}
}
@media screen and (max-width: 767px) {
	.subject-box {
	padding: 40px 0;
}
}
.subject-items,
.vote-items,
.mb-work-items {
	display: grid;
	grid-template-columns: 23% 23% 23% 23%;
	width: 100%;
	margin: auto;
	justify-content: space-between;
	padding: 30px 0;
}
@media screen and (max-width: 1023px) {
	.subject-items,
	.vote-items {
		grid-template-columns: 48% 48%;
	}
}
@media screen and (max-width: 1023px) {
	.mb-work-items {
	display: block;
	}
}


.topic-icon {
	display: inline-block;
	text-align: center;
	color:white;
	padding: 17px 5px;
	background-color: #d5a31a;
	border-radius:50%;
	font-size: 20px;
	box-shadow: 6px 4px var(--main-color);
	margin-right: 20px;
	width: 65px;
	height: 65px;
	}
@media screen and (max-width: 1023px) {
	.topic-icon {
	padding: 13px 5px;
	font-size: 15px;
	width: 50px;
	height: 50px;
	}
}
.topic-icon i {
	font-size: 1.6em;
}

.subject-topic {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	font-size: 48px;
	line-height: normal;
	color:var(--main-color);
  font-weight: 668;
  font-style: normal;
	width: 100%;
}
@media screen and (max-width: 1200px) {
	.subject-topic {
		font-size: 32px;
	}
}
@media screen and (max-width: 767px) {
	.subject-topic {
		font-size: 28px;
	}
}

.subject-topic img {
	display: block;
	width: 80px;
	padding-right: 15px;
}
@media screen and (max-width: 1200px) {
	.subject-topic img {
		width: 70px;
	}
}
@media screen and (max-width: 767px) {
	.subject-topic img {
		width: 60px;
	}
}

.subject-items .item,
.mb-work-items .item {
	display: block;
	border:solid 1px #ccc;
	margin-bottom: 25px;
	padding-bottom: 15px;
}
.vote-items .item {
	display: block;
	border:solid 1px #ccc;
	margin-bottom: 25px;
	padding-bottom: 50px;
	position: relative;
}
@media screen and (max-width: 600px) {
	.subject-items .item,
	.mb-work-items .item {
		padding-bottom: 10px;
	}
	.vote-items .item {
		padding-bottom: 30px;
	}
}
.subject-items .item p,
.vote-items .item p,
.mb-work-items .item p {
	display: block;
	color:#333;
	padding: 0px 15px;
	margin: 0;
}
@media screen and (max-width: 1500px) {
	.subject-items .item p,
	.vote-items .item p,
	.mb-work-items .item p {
		font-size: 15px;
	}
}
@media screen and (max-width: 600px) {
	.subject-items .item p,
	.vote-items .item p,
	.mb-work-items .item p {
		padding: 0px 8px;
	}
}
.subject-items .item p span,
.vote-items .item p span,
.mb-work-items .item p span {
	font-size: 15px;
	color:var(--main-colorLighter);
	display: block;
}

.vote-items .item .tag {
	position: absolute;
  bottom: 0;
	display: block;
	padding: 0 15px 15px;
}
@media screen and (max-width: 600px) {
	.vote-items .item .tag {
	display: flex;
		justify-content: space-around;
	padding: 0;
		width: 100%;
}
}
.vote-items .item .tag span {
	display: inline-block;
	color:#a5a5a5;
	font-size: 13px;
	padding: 3px 15px;
	border-radius:6px;
	margin-right: 5px;
	background-color: #ebebeb;
}
@media screen and (max-width: 600px) {
	.vote-items .item .tag span {
		border-radius:0;
		padding: 3px;
		margin-right: 0px;
		width: 49.5%;
		text-align: center;
	}
}

.vote-items .item .tag span.on {
	background-color: var(--main-subcolor);
	color:white;
}

.mb-work-items .pass,
.mb-work-items .no {
	display: block;
	padding: 5px 20px;
	margin-top: -15px;
	margin-bottom: 15px;
}
@media screen and (max-width: 600px) {
	.mb-work-items .pass,
.mb-work-items .no {
	margin-top: -8px;
	}
}
.mb-work-items .pass {
	background-color: #bde5bd;
	color:#067A30;
}
.mb-work-items .no {
	background-color:#fdd0d0;
	color:#c11111;
}

.item-img {
	width: 100%;
  padding-top: 75%; 
  position: relative;
	overflow: hidden;
	margin-bottom: 15px;
	background-color: white;
}
@media screen and (max-width: 600px) {
	.item-img {
		margin-bottom: 8px;
	}
}
.item-img img {
	position:  absolute;
	width: 100%;
	height: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  text-align: center;
	transition: all .3s;
	object-fit: cover;
}

.item-img img:hover {
	width: 106%;
	height: 106%;
	top: -3%;
  left: -3%;
}



ul.breadcrumb {
	display: block;
	width: var(--main-width);
	margin: 0 auto;
}
@media screen and (max-width: 1249px) {
	ul.breadcrumb {
	width: 100%;
	}
}

ul.breadcrumb {
  padding: 8px 16px;
  list-style: none;
	margin-bottom: 15px;
}
@media screen and (max-width: 1249px) {
	ul.breadcrumb {
  padding: 5px 16px;
	}
}
ul.breadcrumb li {
  display: inline;
  font-size: 15px;
}
ul.breadcrumb li+li:before {
  padding: 8px;
  color: black;
  content: "/\00a0";
}
ul.breadcrumb li a {
  color: var(--main-color);
  text-decoration: none;
}
ul.breadcrumb li a:hover {
  color: var(--main-color);
  text-decoration: underline;
}




.pagination {
	display: block;
	text-align: center;
max-width: 1200px;
	margin: auto;
	padding: 40px 0;
}
@media screen and (max-width: 1023px) {
	.pagination {
		padding: 20px 0 50px;
	}
}
.pagination a {
  color: black;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
	background-color: white;
	border-radius: 50%;
}
@media screen and (max-width: 320px) {
	.pagination a {
  padding: 4px 10px;
}
}
.pagination a:hover {
	background-color: #e1d2b8;
}

.pagination a.active {
  background-color: var(--main-color);
  color: white;
	border:solid 1px var(--main-color);
}
.pagination ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pagination li {
	display: inline-block;
}


footer {
	background: url("footer-bg.png") no-repeat bottom center;
	background-size: cover;
	width: 100%;
	bottom: 0;
	position: relative;
}
@media screen and (max-width: 768px) {
	footer {
	background-image: none;
	width: 100%;
}
}

footer div {
	padding: 280px 0 50px 0;
	color:white;
	width: var(--main-width);
	margin: auto;
}
@media screen and (max-width: 1600px) {
footer div {
	padding: 240px 0 20px 0;
	color:white;
	width: var(--main-width);
	margin: auto;
}
}
@media screen and (max-width: 1200px) {
	footer div {
		padding-top: 170px;
		width: 100%;
	}
}
@media screen and (max-width: 768px) {
	footer div {
		padding: 15px 15px 70px 15px;
		background-color: #b18737;
		text-align: center;
	}
}


main,
article {
	display: block;
	width: var(--main-width);
	margin: auto;
	padding: 70px 0 0;
	min-height: 55%;
}
@media screen and (max-width: 1400px) {
	main,
article {
	padding-top: 50px;
	min-height: 70%;
	}
}
@media screen and (max-width: 1023px) {
	main,
article {
	padding-top: 30px;
		min-height: 85%;
	}
}
article {
	padding: 0;
	min-height: 85%;
}

.article-title {
	display: block;
	text-align: center;
}
@media screen and (max-width: 600px) {
	.article-title {
	text-align: left;
}
}
.article-title h1 {
	display: inline-block;
	padding: 10px 20px;
	margin: 0;
	border-bottom: solid 1px #8b8b8b;
}
.article-title h2 {
	display: block;
	padding: 10px;
	margin: 0;
}
.article-title p {
	padding: 0;
	margin: 0;
	}
@media screen and (max-width: 768px) {
	.article-title h1 {
		font-size: 1.5em;
	}
	.article-title h2 {
		font-size: 1.2em;
	}
}
@media screen and (max-width: 600px) {
	.article-title h1,
	.article-title h2 {
		display: block;
		padding: 10px 0;
		}
	}

.article img {
	max-width: 100%;
	display: inline-block;
	padding: 0;
}

.vote-inner {
	display: grid;
	grid-template-columns: 170px 170px;
	gap:5px;
	margin: 15px 0;
	text-align: right;
	width: 100%;
	justify-content: flex-end;
    align-items: center;
}
@media screen and (max-width: 600px) {
	.vote-inner {
		grid-template-columns: 49% 49%;
	}
}

.vote-inner p,
.vote-inner button {
	display: block;
	padding: 10px;
	text-align: center;
	margin: 0;
}
.vote-inner p {
	background-color: #EBE1C0;
	border:solid 1px #D1C190;
}
.vote-inner p span {
	font-size: 1.5em;
	line-height: 30px;
}
.vote-inner button {
	outline: none;
	background-color:#fbd87d;
	border:solid 1px #D0A772;
	line-height: 34px;
}
.vote-inner button:hover {
	background-color:#e9c45f;
}

.btn {
	display: block;
	text-align: center;
	padding: 30px 0;
}
.btn button,
.btn a {
	outline: none;
	display: inline-block;
	padding: 5px 25px;
	border:none;
	border-radius:8px;
	margin: 10px 5px;
	background-color: var(--main-colorLighter);
	color:white;
}
.btn button:hover,
.btn a:hover {
	background-color: var(--main-color);

}
.modal-content .btn {
	padding: 0;
	margin-bottom: 20px;
}


.flex-video iframe, .flex-video object, .flex-video embed, .flex-video video {
    height: 100%;
    position: absolute;
    top: 0;
    width: 100%;
    left: 0;
}
.flex-video {
    height: 0;
    margin-bottom: 10px;
    overflow: hidden;
    padding-bottom: 55.5%;
    padding-top: 1.5625rem;
    position: relative;
}


/*登入*/

.login {
	display: block;
	margin: 20px auto;
	padding-left: 30px;
	max-width: 500px;
}
@media screen and (max-width: 600px) {
	.login {
		width: 80%;
	padding: 20px 0 0;
	border-left:none;
	}
}
.login h2 {
	display: block;
	font-size: 24px;
	font-weight: 500;
	color:#333;
	text-align: center;
}
.login div,
.join div {
	display: block;
	padding: 8px;
}
.login label,
.join label {
	display: block;
	color:#333;
}
.login .input-code {
	display: flex;
	padding: 0;
	margin: 0;
}
.login .input-code img {
	width: 120px;
	display: block;
}
.login input,
.join input,
.create input,
.create select {
	background-color: #f5f5f5;
	padding: 8px;
	border:solid 1px #EBEBEB;
}
.login input:focus,
.join input:focus,
.create input:focus,
.create select:focus {
	background-color: #EBEBEB;
	padding: 8px;
	border:solid 1px var(--main-color);
}
.login .checkbox .checkmark {
  background-color: #EBEBEB;
	border-color:  #EBEBEB;
}
.login a.forget {
	color:#333;
	float: right;
	display: inline-block;
	margin: -37px 15px 0;
    z-index: 2;
    position: relative;
}
.login a.forget:hover {
	color:var(--main-color);
}
.login a.join-link {
	display: block;
	color:#666;
	text-align: center;
	padding: 5px;
}
.login button {
	display: block;
	width: 100%;
	border:none;
	border-radius:5px;
	color:white;
	background-color: var(--main-colorLighter);
	padding: 8px 10px;
}
.login button:hover {
	background-color: var(--main-color);
}





.join-content,
.create-content {
	display:block;
	border-radius:10px;
	padding: 0 40px;
	margin: 20px auto 30px;
}
.join-content {
  width: 800px;
}
.create-content {
	width: 1000px;
}

@media screen and (max-width: 850px) {
	.join-content,
	.create-content {
		width: 95%;
}
}
@media screen and (max-width: 767px) {
		.join-content,
	.create-content {
		padding: 20px 0;
}
}
.join-content h2,
.mb-containt h2,
.create-content h2 {
	display: block;
	font-size: 24px;
	font-weight: 500;
	color:#333;
	text-align: center;
}
.join-content button, .join-content input[type=submit],
.mb-containt button, .mb-containt input[type=submit] {
	display: inline-block;
	border:none;
	border-radius:5px;
	color:white;
	background-color: var(--main-color);
	padding: 8px 30px;
	margin: 30px 10px;
	width: 150px;
} 
.create-content button,
.create-content input[type=submit] {
	display: inline-block;
	border:none;
	border-radius:5px;
	color:white;
	background-color: var(--main-color);
	padding: 8px 30px;
	margin: 10px 10px;
} 
.join-content button:hover, .join-content input[type=submit]:hover,
.mb-containt button:hover, .mb-containt input[type=submit]:hover
.create-content button:hover, .create-content input[type=submit]:hover {
	background-color: var(--main-colorDarker);
}



.join {
	display:grid;
	grid-template-columns: auto 80%;
	gap:10px;
	padding: 0 20px;
	width: 100%;
	align-items: center;
}
@media screen and (max-width: 767px) {
	.join {
	display:block;
}
}

.join input[type=tel] {
	width: 60%;
}
@media screen and (max-width:550px) {
	.join input[type=tel] {
	width:100%;
}
}
.join .item1 {
	text-align: right;
}
@media screen and (max-width: 767px) {
	.join .item1 {
	text-align: left;
}
}
.join .item2 a {
	display: inline-block;
	border:solid 1px var(--main-color);
	color:var(--main-color);
	padding: 6px 15px;
	text-align: center;
	width: 38%;
	margin-left: 2%;
	border-radius:6px;
}
@media screen and (max-width:550px) {
	.join .item2 a {
		width: 100%;
		margin: 6px 0;
	}
}
.join .item2 a:hover {
	color:#fff;
	background-color: var(--main-color);
}

.create {
	display:grid;
	grid-template-columns: auto 80%;
	gap:1px;
	padding: 1px;
	width: 100%;
	background-color: #D9D9D9;
	margin-bottom: 25px;
}
@media screen and (max-width:767px) {
	.create {
		display: block;
	}
}


.create .item1,
.create .item2 {
	padding: 15px;
	background-color: white;
}
.create .item1 {
	background-color: #efece5;
	}
@media screen and (max-width:767px) {
	.create .item1 {
	padding: 10px 15px;
	}
}


.qa-list {
	display: block;
	margin: 15px auto 30px;
}
.qa {
  background-color: #ededea;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  transition: 0.4s;
	margin-bottom: 1px;
}
@media screen and (max-width:1023px) {
	.qa {
  padding: 12px 18px;
}
}
.qa-list .active, .qa:hover {
  background-color: #f1e7c6;
}

.qa:after {
  content: '\002B';
  color: #777;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.qa-list .active:after {
  content: "\2212";
}

.qa-panel {
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}
.qa-panel img {
	max-width: 100%;
}

ul.news-list {
	display: block;
	min-height: 400px;
	margin: 30px 0;
	list-style: none;
	padding: 0;
}
ul.news-list li {
	display: flex;
	flex-wrap: nowrap;
	background-color: #F1F1F1;
	padding: 5px 20px;
	margin:0 0 2px;
	border-radius:6px;
}
@media screen and (max-width:767px) {
	ul.news-list li {
	display: block;
	}
}
ul.news-list li:hover {
	background-color: #f7f2dc;
}
ul.news-list li span {
	display: inline-block;
	padding: 10px;
	color:#666;
}
ul.news-list li a {
	display: inline-block;
	color: #333;
	padding: 10px;
	min-width: 80%;
}
@media screen and (max-width:767px) {
	ul.news-list li span,
	ul.news-list li a {
		display: block;
	}
	ul.news-list li span {
		padding: 10px 10px 0;
	}
	ul.news-list li a {
		padding: 0 10px 10px;
	}
}
ul.news-list li a:hover {
	color:var(--main-colorDarker);
}

/*單張圖片上傳功能*/
.upload-card {
            background: white;
            padding: 2rem;
            border-radius: 1rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
            width: 100%;
            max-width: 600px;
            text-align: center;
	margin: auto;
        }
.upload-card .hidden {
	display: none;
}
        .drop-zone {
            border: 2px dashed #d1d5db;
            border-radius: 0.75rem;
            padding: 2rem;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
        }
        .drop-zone:hover {
            border-color: #bdb097;
            background-color: #f9f3e2;
        }
.drop-zone i {
	font-size: 4em;
	margin: auto;
	color:#a9aeb1;
	padding-bottom: 15px;
}
        #preview-container {
            margin-top: 1.5rem;
            display: none;
        }
        #image-preview {
            max-width: 100%;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }