/* for 1024px or less */ 
@media screen and (max-width: 1024px) {
	
body									{ font-size:13px; }

.panel-form .row label					{ width:32%; }

#header-wrapper							{ height:60px; }
#header-inner							{ padding-top:12px; position:relative; }
#header-inner h1						{ width:220px; height:36px; }

#nav-wrapper							{ top:20px; }

#main									{ margin-top:60px; padding:40px 0 60px 0; min-height:0; }	
#main h2								{ margin-bottom:40px; }
#main-menu								{ width:190px; }
#main-menu li.active 					{ width:205px; }
#main-menu h2							{ margin-bottom:20px; }
#main-body								{ margin-left:220px; }

#footer-inner							{ padding:40px 0 20px 0; }
#footer-inner #company img				{ height:32px; }
#social-links							{ top:40px; }
#font-size-nav							{ bottom:20px; }


/* index.php */
#hero									{ padding:70px 0; }
#hero #slogan							{ margin-bottom:50px; }
#hero-box								{ max-width:780px; margin-bottom:10px; }
#hero-box .box							{ width:calc(33.33333333% - 24px); margin:18px 12px 38px 12px; }	/* 平板寬度不夠，間距縮回 24px，避免卡片太小 */
#hero-box .flickity-viewport			{ margin-bottom:0; }
#hero-box .flickity-prev-next-button	{ display:none; }
#free-articles							{ padding-bottom:40px; }
#public-broadcast						{ padding:60px 0; }
#broadcast-carousel .item 				{ width:30.66666666666667%; margin:0 4% 0 0; }
#broadcast-carousel .flickity-prev-next-button { width:36px; height:36px; }
#comments								{ padding:55px 0; }
#index #main .banner					{ padding:90px 0; }

/* product.php */
#product section						{ margin-bottom:20px; }

/* project.php */
#main-body .panel						{ padding: 30px 35px 20px 35px; }
.project-panel h3						{ margin-bottom:20px !important; }
.project-panel .summary .button-wrapper	{ margin-top:30px; }

/* checkout.php */
#cart-table								{ margin-bottom:30px; }
#pay-form								{ margin-bottom:0; }

}


/* for 768px or less */ 
@media screen and (max-width: 768px) {
	
.mobile-element			{ display:block; }
.mobile-hidden			{ display:none !important; }	

/* Mobile navigator */
#menu-button			{ position:absolute; right:0; top:5px; cursor:pointer; }
#nav-wrapper			{ z-index:100; position:fixed; right:-200px; top:0; bottom:0; width:200px; background:#04469a; transition:right .5s; }
#header-inner nav		{ float:none; }
#header-inner nav ul	{ text-align:left; }
#header-inner nav li	{ display:block; margin:0 !important; padding:0 !important; border-bottom:1px solid rgba(255,255,255,.15); }
#header-inner nav li.lt-seperate:before { display:none; }
#header-inner nav a		{ display:block; padding:18px 22px; }
#toolbar				{ float:none; margin-left:0; background:#04469a; }
#toolbar-nav a			{ display:block; padding:18px 22px; margin:0 !important; border-bottom:1px solid rgba(255,255,255,.25); position:relative;  }
#toolbar-nav i			{ width:16px !important; height:auto; margin-right:12px;  vertical-align:middle;}
#toolbar-nav .label		{ display:inline; vertical-align:middle; }
#toolbar-nav #broadcast-button .unread{ right:15px; top:50%; transform:translateY(-50%); }
#menu-mask				{ display:none; position:fixed; left:0; right:0; top:0; bottom:0; background:rgba(0,0,0,.25); }

.mobile-show-menu #nav-wrapper		{ right:0; box-shadow:0 -2px 5px rgba(0,0,0,.5);  }
.mobile-show-menu #menu-mask		{ display:block; }

/* Main */
#main					{ padding:40px 0; }

#main-content			{ margin-right:0; }
#main-aside 			{ display:none; }

#main-menu				{ width:auto; float:none; margin-bottom:15px; border-radius:5px; overflow:hidden; }
#main-menu h2			{ display:none; }
#main-menu ul			{ margin-bottom:0; }
#main-menu li			{ display:none; }
#main-menu li a			{ padding:1em 20px; }
#main-menu li.active 	{ width:auto; display:block; }
#main-menu li.active a	{ }
#main-menu li.gap		{ margin-top:0 !important; }
#main-menu ul.secondary				{ margin-bottom:0; }
#main-menu ul.secondary a			{ }
#main-menu ul.secondary li			{ }
#main-menu ul.secondary li.active a	{ }
#main-menu #buy-button 				{ margin-top:0; }
#main-menu #buy-button a			{ color:#aaa; }
#main-menu #consultation-button a	{ padding:1em 20px; }
#main-menu.mobile-show li			{ display:block; }
#main-body				{ margin-left:0; padding-top:0; }
#main-body .panel		{ padding:30px 30px 20px 30px; }

/* Footer */	
#footer-inner #company	{ display:none; }	
#footer-inner nav		{ width:75%; min-width:0; }

/* product.php */
#product section .button				{ margin-top:0; }

/* price.php */
.price-list	.row		{ width:33.33%; margin-bottom:6%; }

/* dashboard.php */
#edit-info-tips			{ padding-bottom:40px !important; }
#edit-info-tips .desc	{ margin-right:0; margin-bottom:30px; }
#edit-info-tips .button	{ float:none; }

/* profile.php */
#profile-form .row .error-msg { display:block; margin-left:150px; }
}


/* for 640px or less */ 
@media screen and (max-width: 640px) {

/* index.php：這個寬度並排三張太窄，正方形放不下內容，改成一次兩張 */
#hero-box .box					{ width:47%; margin:16px 1.5% 34px 1.5%; }
	
#main h2						{ font-size:1.8em; margin-bottom:20px; }
#main h3						{ font-size:1.4em; margin-bottom:20px; }

#font-size-nav					{ bottom:15px; }

.article-list li				{ width:48.5%; margin-right:3%; margin-bottom:3%; }	
.article-list li:nth-child(3n)	{ margin-right:3%; }	
.article-list li:nth-child(2n)	{ margin-right:0; }	

/* index.php */
#free-articles			{ padding:40px 0; }
#free-articles h2		{ margin-bottom:40px !important; }

#public-broadcast						{ padding:50px 0; }
#broadcast-carousel .item 				{ width:48%; margin:0 4% 0 0; }
 
/* price.php */
.price-list	.row		{ width:50%; margin-bottom:6%; }	
#price #main h2			{ margin-bottom:45px; }

/* checkout.php */
#cart-table				{ margin-bottom:15px; }
#cart-table	td			{ padding:25px 10px; }
#cart-table	th.content	{ display:none; }
#cart-table	td.content	{ display:none; }
#cart-table	td.quantity	span	{ display:none; }
#cart-table .total		{ text-align:right; }
#cart-table .total span	{ font-size:1em; display:block; }
#pay-form				{ }
#payment-options		{ padding:25px 5%; margin-bottom:10px;  }
#payment-options span	{ margin-right:0; display:block; margin-bottom:10px; }
#pay-button-wrapper		{ margin-bottom:25px; }
#pay-button-wrapper input	{ margin-top:10px; }


}


/* for 480px or less */ 
@media screen and (max-width: 480px) {

body 				{ font-family:"微軟正黑體", "Microsoft JhengHei", "Helvetica Neue", Helvetica, "Arial", sans-serif; }
body.zh-cn			{ font-family:"微軟正黑體", "Microsoft JhengHei", "Helvetica Neue", Helvetica, "Arial", sans-serif; }

/* Elements */
.article-list li				{ float:none; width:100%; margin-bottom:25px; }	

.article-body h1				{ margin-bottom:15px; }
.article-body .cover-image		{ margin-bottom:15px; }
 
.panel-form .row				{ padding:7px 0 15px 0; }
.panel-form .row .label			{ width:100%; display:block; margin:8px 0; }
.panel-form .row label			{ width:49%; margin-right:0; }
.panel-form input[type="text"].long	{ width:100%; } 

/* Header */
#header-wrapper					{ height:56px;}
#header-inner					{ padding-top:11px; }
#menu-button					{ top:4px; }

/* Main */
#main							{ margin-top:56px; padding:25px 0; }
#main h2						{ margin-bottom:25px; font-size:1.5em; }
#main h3						{ margin-bottom:15px; font-size:1.25em; }

#main-menu						{ margin-bottom:20px; }
#main-body .panel				{ padding:30px 5% 20px 5%; }
#main-body .panel-box			{ width:88%; padding:20px 6% 10px 6%; margin-bottom:10px; }
#main-body .panel-box.lt		{ float:none; }
#main-body .panel-box.rt		{ margin-left:0; }
#main-body .panel-box .label	{ margin-bottom:8px; font-size:1em; }
#main-body .panel-box .value	{ margin-bottom:20px; font-size:1.16em; }

/* Footer */
#footer-inner nav				{ width:100%; } 
#footer-inner					{ padding:30px 0 20px 0; }
#footer-inner nav ul			{ float:left; width:50%; margin-bottom:20px; }
#footer-inner #copyright		{ text-align:left; }
#social-links					{ position:static; }
#social-links a					{ margin-left:0; margin-right:20px; }

#font-size-nav					{ position:static; margin-top:30px; }

/* Login */
form							{ }
form input[name="lastname"]		{ width:100%; margin-right:0; margin-bottom:15px; display:block; }
form input[name="firstname"]	{ width:100%; display:block; }
#social-login					{ margin-bottom:25px; }

/* index.php */
#hero							{ padding:50px 0; }
#hero-box						{ margin-bottom:10px; }
#hero-box .box					{ width:min(262px, 88%); margin:14px calc((100% - min(262px, 88%)) / 2) 32px; }	/* 和電腦版一樣約 262px 的正方形，置中；很窄的手機才縮成 88% */
#hero-box .box .icon			{ width:56%; }	/* 手機：圖示和文字放大一點，讓卡片比較飽滿 */
#hero-box .box .title			{ font-size:1.3em; min-height:calc(1.33em + 4px + 2 * 12px * 1.4); }
#hero-box .box .title .en		{ font-size:12px; }

#public-broadcast				{ padding:36px 0; }
#broadcast-carousel .item 		{ width:100%; margin:0 4% 0 0; }

#comments						{ padding:40px 0 20px 0; }
#comments h2					{ margin-bottom:30px !important; }
#comments-list					{ margin:0; }
#comments-list li				{ width:100%; max-width:none; margin:0 auto; margin-bottom:30px; }
#comments-list .talk			{ margin-bottom:8px; margin-right:0; }	
#comments-list .name img		{ width:32px; height:32px; }	

/* product.php */
#product section				{ margin-bottom:10px; }
#product section .thumb			{ width:100%; }
#product section .contents		{ width:100%; padding:6% 5%; }

/* price.php */
#price #main					{ padding-bottom:5px; }
.price-list						{ margin-bottom:20px; }
.price-list	.row				{ width:100%; margin-bottom:6%; }

.currency-toolbar				{ margin-top:-5px; }
.currency-toolbar + h2			{ margin-bottom:40px !important; }

/* contact.php */ 
.contact-info strong			{ width:90px; }
#main-content .desc				{ font-size:1em; }

/* dashboard.php */
.panel .search-article-form				{ width:auto; }
.panel .search-article-form input[type="text"] { display:none; }
.panel .search-article-form input[type="submit"] { position:absolute; right:0; top:0; width:24px; height:24px; border:1px solid #ccc; border-radius:4px; } 

/* subscription.php */
.subscription-box			{ width:88%; padding:30px 6% 10px 6%; margin-bottom:10px; }
.subscription-box p			{ margin-bottom:20px; }
.subscription-box .label	{ margin-bottom:8px; display:block; }
.subscription-box .value	{ margin-bottom:0; }

/* reciept-view.php */
#reciept-view-table	th,
#reciept-view-table	td	{ padding:20px 10px; width:20px; }
#reciept-item-list p:nth-child(2)		{ width:20px; }

/* project.php */
.project-panel .summary					{ width:100%; float:none; margin-bottom:20px; }
.project-panel .summary-info			{ background:#fafafa; padding:25px 15px 20px 15px; }
.project-panel .summary	.button-wrapper	{ margin-top:20px; }
.title-list								{ margin-left:0; margin-bottom:20px; margin-top:40px; }

/* consultation.php */
#consultation-form 						{ margin-right:0; margin-top:20px; }
#consultation-info						{ float:none; width:auto; margin:0; }

/* search.php */
#search-result .article-list			{ margin-top:30px; }
#search .search-article-form			{ margin-bottom:20px; }
#search .search-article-form input[type="text"] { padding:12px 16px; font-size:1.14em; }
#search .search-article-form input[type="submit"] { width:46px; height:46px; }
#search-tags							{ margin-bottom:20px; }
 
/* profile.php */
#profile-form .row .label				{ width:100%; display:block; margin:8px 0; }
#profile-form input[name="lastname"]	{ margin-bottom:0; }
#profile-form .row label				{ width:49%; margin-right:0; }
#profile-form .row .tip					{ margin-top:8px; display:inline-block; }

}