/* 體大資訊中心風格（對齊 cc.ntsu.edu.tw）：全寬、藍色頂欄、灰階漸層頁首、文字標誌、藍色頁尾。
   疊在 osTicket 預設 theme.css 之後載入，只覆寫外觀，不動結構。 */
:root { --ntsu-blue: #447cc9; --ntsu-blue-dark: #2f62a8; --ntsu-text: #575758; --ntsu-line: #8c8c8c; --ntsu-max: 1200px; }
html, body { background: #fff !important; }
body, input, select, textarea, button { font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Microsoft YaHei", Tahoma, Arial, sans-serif; color: var(--ntsu-text); }
body { font-size: 16px; line-height: 1.6; }
a { color: var(--ntsu-blue); } a:hover { color: var(--ntsu-blue-dark); }

#ntsu-topbar { background: var(--ntsu-blue); color: #fff; font-size: 17px; line-height: 33px; }
#ntsu-topbar .inner, #header, #nav, #content, #footer .inner { max-width: var(--ntsu-max); margin: 0 auto; box-sizing: border-box; }
#ntsu-topbar .inner { padding: 0 15px; }
#ntsu-topbar a { color: #fff; text-decoration: none; }

#container { width: 100%; box-shadow: none; background: linear-gradient(#ececec, #fff 128px) no-repeat #fff; }
#header { height: auto; padding: 22px 15px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
#header #logo { order: 1; float: none; height: auto; text-decoration: none; display: block; }
#header #logo .sitename { display: block; font-size: 31px; line-height: 1.3; color: var(--ntsu-blue); letter-spacing: .5px; }
#header #logo .sysname { display: block; font-size: 17px; color: var(--ntsu-text); margin-top: 2px; }
#header .pull-right { order: 2; float: none; text-align: right; }
#header p { width: auto; padding: 0; font-size: 15px; }
#header .valign-helper { display: none; }

#nav { height: auto; margin: 0 auto; padding: 14px 0 12px; background: none; border-top: 1px solid var(--ntsu-line); box-shadow: none; display: flex; flex-wrap: wrap; }
#nav li { display: block; border-left: 2px solid var(--ntsu-text); line-height: 1; margin: 6px 0; }
#nav li:last-child { border-right: 2px solid var(--ntsu-text); }
#nav li a, #nav li a.home, #nav li a.new, #nav li a.status, #nav li a.tickets, #nav li a.kb {
  height: auto; line-height: 1.1; padding: 0 30px; font-size: 18px; color: var(--ntsu-text); background: none !important; border-radius: 0; text-decoration: none; }
#nav li a.active, #nav li a:hover { color: var(--ntsu-blue); background: none !important; }
#container > hr { max-width: var(--ntsu-max); border: 0; border-top: 1px solid var(--ntsu-line); margin: 0 auto; }

#content { padding: 26px 15px 50px; min-height: 420px; }
#content h1, #content h2 { color: var(--ntsu-blue); font-weight: normal; }
#content h1 { font-size: 26px; margin: 0 0 14px; }
#content h1 small { color: var(--ntsu-text); }
#msg_error, #msg_notice, #msg_warning { margin: 0 0 18px; font-size: 16px; height: auto; line-height: 1.5; padding: 10px 14px 10px 40px; background-position: 12px center; }

/* 首頁主視覺：資訊中心網站沒有可直接沿用的大圖，先用同色系色塊代替 */
.ntsu-hero { background: linear-gradient(120deg, var(--ntsu-blue-dark), var(--ntsu-blue) 55%, #6f9fdf); color: #fff; }
.ntsu-hero .inner { max-width: var(--ntsu-max); margin: 0 auto; padding: 44px 15px 46px; box-sizing: border-box; }
.ntsu-hero h1 { margin: 0 0 8px; font-size: 34px; font-weight: normal; color: #fff; }
.ntsu-hero p { margin: 0 0 22px; font-size: 18px; opacity: .95; }
.ntsu-hero a.cta { display: inline-block; margin: 0 12px 8px 0; padding: 11px 30px; font-size: 18px; text-decoration: none; border: 2px solid #fff; color: var(--ntsu-blue-dark); background: #fff; }
.ntsu-hero a.cta.ghost { background: transparent; color: #fff; }
.ntsu-hero a.cta:hover { background: #e8f0fb; color: var(--ntsu-blue-dark); }

#landing_page { display: block; }
#landing_page .sidebar { display: none; }           /* 兩顆按鈕移到主視覺 */
#landing_page .main-content { width: auto; float: none; }
#landing_page .thread-body { padding: 0; font-size: 17px; line-height: 1.8; }
.ntsu-section { display: flex; align-items: stretch; background: var(--ntsu-blue); margin: 26px 0 16px; }
.ntsu-section::before { content: ""; width: 18px; }
.ntsu-section span { background: #fff; padding: 12px 18px; font-size: 18px; color: var(--ntsu-text); }
.ntsu-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.ntsu-steps li { border: 1px solid #d9d9d9; border-top: 4px solid var(--ntsu-blue); padding: 16px 18px; }
.ntsu-steps b { display: block; color: var(--ntsu-blue); font-size: 19px; font-weight: normal; margin-bottom: 4px; }

/* 表單與表格 */
#content form table { width: 100%; }
#ticketForm td, #content form td { padding: 6px 0; font-size: 16px; }
#content input[type=text], #content input[type=email], #content input[type=password], #content select, #content textarea {
  font-size: 16px; padding: 7px 9px; border: 1px solid #b5b5b5; border-radius: 0; box-sizing: border-box; max-width: 100%; }
#content input[type=text], #content input[type=email], #content input[type=password] { min-width: min(420px, 100%); }
#content select { min-width: min(320px, 100%); height: auto; }
#content .form-header h3, #content .form-header { color: var(--ntsu-blue); }
#content em, #content .faded { color: #777; }
.button, input[type=submit], input[type=button], input[type=reset], #content .button {
  font-size: 16px; padding: 9px 26px; border-radius: 0; border: 1px solid var(--ntsu-blue); background: var(--ntsu-blue); color: #fff;
  text-shadow: none; box-shadow: none; cursor: pointer; height: auto; line-height: 1.3; }
input[type=reset], input[type=button] { background: #fff; color: var(--ntsu-blue); }
.button:hover, input[type=submit]:hover { background: var(--ntsu-blue-dark); border-color: var(--ntsu-blue-dark); color: #fff; }
#ticketTable, #content table.list { width: 100%; border-collapse: collapse; font-size: 16px; }
#ticketTable th, #content table.list th { background: #ececec; color: var(--ntsu-text); border-bottom: 2px solid var(--ntsu-blue); padding: 10px 8px; text-align: left; height: auto; }
#ticketTable th a { color: var(--ntsu-text); background-image: none; }
#ticketTable td, #content table.list td { padding: 10px 8px; border-bottom: 1px solid #e3e3e3; }
#ticketTable tr:hover td { background: #f3f7fd; }
#ticketInfo, #content table.infoTable { width: 100%; }
.thread-entry .header { background: #ececec; }
#clientLogin { width: auto; max-width: 760px; background-image: none; border: 1px solid #d9d9d9; border-top: 4px solid var(--ntsu-blue); }

#footer { background: var(--ntsu-blue); color: #fff; margin: 0; padding: 0; text-align: left; font-size: 15px; }
#footer .inner { padding: 26px 15px 30px; line-height: 1.9; }
#footer a, #footer p { color: #fff; margin: 0; }
#footer #poweredBy { display: inline; float: none; width: auto; height: auto; background: none; text-indent: 0; font-size: 12px; opacity: .75; margin: 6px 0 0; }

@media (max-width: 720px) {
  #header #logo .sitename { font-size: 24px; }
  #nav li a { padding: 0 14px; font-size: 16px; }
  .ntsu-hero h1 { font-size: 26px; }
}
/* 主視覺放在 #content 裡，往左右撐滿整個視窗 */
body { overflow-x: hidden; }
.ntsu-hero { margin: -26px calc(50% - 50vw) 30px; }
#content .ntsu-hero h1 { color: #fff; }
#landing_page .thread-body ul.ntsu-steps { margin: 0; padding: 0; }
#landing_page .thread-body ul.ntsu-steps li { list-style: none; margin: 0; font-size: 15px; line-height: 1.7; }
#landing_page .thread-body p { font-size: 16px; margin: 0 0 10px; }
