/* layout.css — merged from style_top.css + style_down.css */

/* ── Header (legacy #box structure kept for safety) ── */
#box {
	border-top-width: 1em;
	border-top-style: solid;
	border-top-color: #248230;
	background-image: url(/img/top01.gif);
	background-repeat: repeat-x;
	background-position: top;
	-webkit-box-shadow: 0px 0px 15px #E3E3E3;
	box-shadow: 0px 0px 15px #E3E3E3;
	-o-box-shadow: 0px 0px 15px #E3E3E3;
	-moz-box-shadow: 0px 0px 15px #E3E3E3;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #CCC;
	border-right-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-left-style: solid;
	border-right-color: #CCC;
	border-left-color: #CCC;
	margin-bottom: 3em;
	background-color: #e8e8ee;
	margin-right: auto;
	margin-left: auto;
}

#box02 {
	margin-right: auto;
	margin-left: auto;
	width: 85%;
	padding-top: 1.2em;
	padding-bottom: 1em;
}

#logo {
	background-image: url(/img/logo-02.png);
	background-repeat: no-repeat;
	font-size: 2.2em;
	padding-left: 170px;
	color: #32b4ff;
	background-position: left top;
	font-family: "微軟正黑體";
	font-weight: bold;
	height: 60px;
	display: table;
}
#logo div {
	vertical-align: middle;
	display: table-cell;
}
#logo a { text-decoration: none; }
#logo a:hover { color: #093; }

#menu div {
	text-align: right;
	vertical-align: middle;
	display: table-cell;
}
#menu {
	font-family: "微軟正黑體";
	font-size: 1.3em;
	float: right;
	display: table;
	height: 60px;
	line-height: 30px;
	z-index: 5;
}
#menu a {
	margin-left: 0.4em;
	color: #333;
	text-decoration: none;
	font-weight: normal;
	padding-bottom: 0.7em;
	padding-top: 0.4em;
	padding-left: 0.4em;
}
#menu a:hover { color: #C60; }
#menu div #login01 { color: #E30000; }

#here {
	border-radius: 2px;
	border: 1px none #666;
	background-image: url(/img/menu01.png);
	background-repeat: no-repeat;
	background-position: center bottom;
	padding: 0.2em 0.5em;
}

#menu02 {
	font-size: 1.2em;
	color: #333;
	font-family: "微軟正黑體";
	text-align: right;
	border-radius: 15px;
	border: 1px dashed #999;
	-webkit-box-shadow: 0px 0px 10px #ccc;
	box-shadow: 0px 0px 10px #ccc;
	padding: 0.3em 0;
	background-color: #FFF;
}
#menu02 a {
	color: #D200D2;
	margin-left: 0.6em;
	text-decoration: none;
	border-left: 1px solid #EBEBEB;
	padding-left: 0.6em;
}
#menu02 a:hover { color: #06C; }
#menu02 #here02 { color: #06C; }

#top_login {
	font-family: "微軟正黑體";
	font-size: 1.15em;
	text-align: right;
	color: #C60;
}
#top_login a { color: #C60; text-decoration: none; margin-left: 1em; }
#top_login a:hover { color: #06F; }

/* ── Desktop nav bar ── */
#button_box {
	border-top: 0.8em solid #248230;
	background-image: url(/img/top01.gif);
	background-repeat: repeat-x;
	background-position: top;
	-webkit-box-shadow: 0px 0px 15px #E3E3E3;
	box-shadow: 0px 0px 15px #E3E3E3;
	border-bottom: 1px solid #CCC;
	border-right: 1px solid #CCC;
	border-left: 1px solid #CCC;
	background-color: #e8e8ee;
	margin-right: auto;
	margin-left: auto;
	padding-top: 1em;
	padding-bottom: 0.4em;
}

.button_logo {
	font-family: "微軟正黑體";
	color: #069;
	width: 65px;
	float: left;
	margin-right: 0.5em;
}
.button_logo img {
	margin-right: 0.5em;
	width: 100%;
	display: inline-block;
}
.button_logo a img {
	border: none;
}

.button_name {
	font-family: "微軟正黑體";
	font-size: 1.9em;
	color: #006699;
	float: left;
	font-weight: bold;
	margin-top: 0.2em;
}
.button_name a,
.button_name a:link,
.button_name a:visited,
.button_name a:hover {
	color: #248230;
	text-decoration: none;
}

.button01 {
	font-size: 1.1em;
	text-align: right;
	font-family: "微軟正黑體";
	margin-bottom: 0.5em;
}
.button01 a,
.button01 a:link,
.button01 a:visited {
	color: #C60;
	margin-right: 0.5em;
	margin-left: 0.5em;
	text-decoration: none;
}
.button01 a:hover { color: #337AB7; text-decoration: none; }

.button02 {
	text-align: right;
	overflow: hidden;
	font-size: 1.2em;
	color: #000;
	font-family: "微軟正黑體";
}
.button02 a { color: #333; }
.button02 #right { text-align: right; float: right; }

/* ── Sub-menu bar (farmtype topics) ── */
.button03 {
	text-align: right;
	font-family: "微軟正黑體";
	font-size: 1.2em;
	line-height: 50px;
	height: 50px;
	margin-right: auto;
	margin-left: auto;
	color: #FFF;
}
.button03 a,
.button03 a:link,
.button03 a:visited,
.button03 a:active {
	color: #FFF;
	padding-right: 0.5em;
	padding-left: 0.5em;
	margin-right: 1em;
	text-decoration: none;
}
.button03 a:hover,
.button03 .active {
	background-color: #16501E;
	display: inline-block;
	color: #FFF;
	text-decoration: none;
}

/* ── Farmtype sub-menu background strip ── */
.bg {
	background-color: #248230;
	border-top: 1px solid #FFF;
	margin-bottom: 1em;
	color: #FFF;
}

#widh {
	width: 100%;
	text-align: center;
	margin-right: auto;
	margin-left: auto;
}

.index-logo { padding-top: 5px; }

/* ── Mobile Bootstrap navbar overrides ── */
.navbar { margin-bottom: 0; }
.navbar-inverse {
	background-color: #66cc66;
	border-color: #66cc66;
	color: white;
}
.navbar-inverse .navbar-brand { color: white; }
.navbar-inverse .navbar-nav > li > a { color: white !important; }

/* ── Footer ── */
#footer {
	background-color: #FFF;
	background-image: url(../img/footer.gif);
	background-repeat: repeat-x;
	background-position: top;
	text-align: center;
	margin-top: 3em;
	padding-top: 2em;
	padding-bottom: 2em;
	border-top: 3px solid #66cc66;
	letter-spacing: 0.1em;
	color: #333;
	margin-right: auto;
	margin-left: auto;
	font-family: "微軟正黑體";
}
#footer02 {}

/* ── Responsive ── */
@media (min-width: 1200px) {
	.button_logo { width: 65px; margin-right: 0.5em; }
	.button_name { font-size: 2em; margin-top: 0.4em; margin-left: 0.2em; }
}
@media (max-width: 1199px) {
	.button_logo { width: 65px; margin-right: 0.5em; }
	.button_name { font-size: 1.8em; margin-top: 0.4em; margin-left: 0.2em; }
	.button01 { font-size: 0.8em; margin-bottom: 0.5em; }
}
@media (max-width: 991px) {
	#box02 { margin-right: auto; margin-left: auto; width: 98%; }
	.button_logo { width: 65px; margin-right: 0.5em; }
	.button_name { font-size: 1.5em; margin-top: 0.4em; margin-left: 0.2em; }
	.button01 { font-size: 1em; margin-bottom: 0.5em; }
	.button01 a { margin-right: 0.5em; margin-left: 0.5em; }
	.button02 { font-size: 1em; }
	.button03 { font-size: 1em; line-height: 50px; height: 50px; }
}
@media (max-width: 767px) {
	#box02 { margin-right: auto; margin-left: auto; width: 98%; }
	.button_logo { width: 65px; margin-right: 0.5em; }
	.button_name { font-size: 1.5em; margin-top: 0.4em; margin-left: 0.2em; }
	.button01 { font-size: 0.8em; margin-bottom: 0.5em; }
	.button01 a { margin-right: 0.5em; margin-left: 0.5em; }
	.button02 { font-size: 0.5em; }
	.button03 { margin-left: 0.2em; margin-right: 0.1em; font-size: 0.8em; line-height: 50px; height: 50px; }
	.button03 a { margin-right: 0; margin-left: 0.1em; }
}
@media (max-width: 480px) {
	#box02 { margin-right: auto; margin-left: auto; width: 98%; }
	.button_logo { width: 100px; margin-right: 0.5em; }
	.button_name { font-size: 1.8em; margin-top: 0.2em; }
	.button01 { font-size: 0.8em; margin-bottom: 0.5em; }
	.button01 a { margin-right: 0.5em; margin-left: 0.5em; }
	.button02 { font-size: 0.5em; }
	.bg { height: 5em; }
	.button03 { font-size: 1em; line-height: 2em; margin-left: -15px; margin-right: -15px; }
}
@media (max-width: 320px) {
	.bg { height: 4.5em; }
	.button03 { font-size: 0.8em; line-height: 2em; margin-left: -15px; margin-right: -15px; }
}
