/* Inner pages (everything except the home page): same visual language as the new home page

 * (home2.css) -- navy / sky-blue palette, rounded white cards, soft shadows.

 * Loaded by js/site.js only when <body> is NOT data-layout="home", so the home page is untouched.

 * Widths are kept (175 + 20 + 665 + 100 = 960) so the fixed-width legacy content still fits. */



:root {

  --navy: #495a92;

  --navy-2: #495a92;

  --sky: #6aa6ee;

  --sky-2: #b7e6ff;

  --ink: #2b3347;

  --muted: #6b7690;

  --line: #e3e9f4;

  --soft: #f4f7fc;

  --card-shadow: 0 2px 14px rgba(44, 68, 120, .10);

  --serif: "Noto Serif TC", "Source Han Serif TC", "PMingLiU", "MingLiU", serif;

  --sans: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;

}



/* ---------- layout: three equal-height columns ---------- */

body.home2 dl.column.inner { display: flex; align-items: stretch; gap: 0; }

body.home2 dl.column.inner > dd { float: none; }

body.home2 #main dl.column.inner .columnLeft.page { padding: 0; margin: 0 20px 0 0; min-height: 0; flex: 0 0 auto; width: 175px; }

body.home2 #main dl.column.inner .columnCenter.page {

  flex: 0 0 auto; width: 635px; padding: 0 15px 28px; margin: 0; min-height: 520px; box-sizing: content-box;

  background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); overflow: hidden;

  font-family: var(--sans); color: var(--ink);

}

body.home2 #main dl.column.inner .columnRight.page {

  flex: 0 0 auto; width: 100px; margin: 0; padding: 0; min-height: 0;

  background: var(--soft); border-radius: 12px; box-shadow: var(--card-shadow); overflow: hidden;

}

/* a page with several .columnCenter blocks (DailyGift P1/P2/..) shows one at a time; keep the flex slot stable */

body.home2 dl.column.inner .columnCenter.page[style*="display: none"],

body.home2 dl.column.inner .columnCenter.page[style*="display:none"] { display: none !important; }



/* ---------- left side nav ---------- */

body.home2 .columnLeft.page .index_storedValue { height: auto; margin: 0 0 14px; }

body.home2 .columnLeft.page .index_storedValue img { display: block; width: 175px; border-radius: 10px; box-shadow: var(--card-shadow); }

body.home2 .page_sideNav { background: none; margin: 0 0 14px; }

body.home2 .page_sideNav ul { background: none; padding: 0; box-shadow: none; list-style: none; margin: 0; }

body.home2 .page_sideNav li { margin: 0; padding: 0; text-align: center; overflow: hidden; }

body.home2 .page_sideNav li a {

  display: inline-block; width: auto; height: auto; padding: 0; line-height: 44px; overflow: visible; background: none; border: 0; box-shadow: none; position: relative;

  font-size: 15px; font-weight: 400; letter-spacing: .08em; color: #0099cc; text-decoration: none; font-family: var(--sans);   /* the original link colour, always */

}

/* mouse over: the underline comes in from the far left edge of the menu, lands under the words and stays */

body.home2 .page_sideNav li a::after {

  content: ""; position: absolute; left: -12px; right: -12px; bottom: 8px; height: 1px; background: #0099cc;

  transform: translateX(-200px); transition: transform .4s ease;      /* waits at the far left edge of the menu */

}

body.home2 .page_sideNav li a:hover::after, body.home2 .page_sideNav li a.active::after { transform: translateX(0); }   /* the page you are on keeps its underline */

body.home2 .page_sideNav li a:link, body.home2 .page_sideNav li a:visited, body.home2 .page_sideNav li a:hover, body.home2 .page_sideNav li a.active, body.home2 .page_sideNav li a.active:hover { background: none; color: #0099cc; font-weight: 400; }

body.home2 .page_sideNav li span { position: static; margin-left: 6px; font-size: 12px; color: var(--muted); }

/* story nav has two lines per entry */

body.home2 .page_sideNav li a:has(span) { line-height: 1.35; padding-top: 8px; padding-bottom: 8px; }

body.home2 .page_sideNav li a:has(span) span { display: block; margin: 2px 0 0; }



body.home2 .columnLeft.page .index_bannerSide { margin-top: 0; border-radius: 10px; overflow: hidden; box-shadow: var(--card-shadow); }



/* ---------- right quick bar ---------- */
/* a 10px gap between the buttons */
/* the size of the pictures: no empty strip between two of them */
/* ---------- page head: keep the original banner pictures (Images/default/pageHead_*.jpg) ---------- */

body.home2 .pageHead { width: 635px; height: 90px; margin: 0; padding: 0; position: relative; background-repeat: no-repeat; background-position: left top; overflow: hidden; }

body.home2 .pageHead h1 { text-indent: -9999px; margin: 0; }

body.home2 .pageHead h2 {

  position: absolute; left: 185px; top: 55px; width: 330px; margin: 0; text-align: right; color: #fff;

  font: 700 18px/1.3 var(--sans); text-shadow: 0 1px 2px rgba(0, 0, 0, .35);

}

body.home2 .pageHead.story { background-image: url(../images/default/pageHead_story.jpg); }

body.home2 .pageHead.news { background-image: url(../images/default/pageHead_news.jpg); }

body.home2 .pageHead.info { background-image: url(../images/default/pageHead_info.jpg); }

body.home2 .pageHead.guide { background-image: url(../images/default/pageHead_guide.jpg); }

body.home2 .pageHead.shop { background-image: url(../images/default/pageHead_shop.jpg); }

body.home2 .pageHead.download { background-image: url(../images/default/pageHead_download.jpg); }

body.home2 .pageHead.service { background-image: url(../images/default/pageHead_service.jpg); }



/* ---------- content ---------- */

body.home2 .pageContent { margin: 26px 0 8px; font-size: 15px; line-height: 1.85; color: var(--ink); }

body.home2 .pageContent h2 {

  margin: 28px 0 14px; padding: 2px 0 8px 14px; font: 700 18px/1.4 var(--sans); color: var(--navy);

  background: none; border-left: 4px solid var(--sky); border-bottom: 1px solid var(--line); border-radius: 0 0 0 2px;

}

body.home2 .pageContent > h2:first-child { margin-top: 0; }

body.home2 .pageContent h3 { margin: 0 0 12px; padding: 0; font: 700 15px/1.6 var(--sans); color: var(--navy-2); }

body.home2 .pageContent h4 { margin: 0; padding: 0; font: 700 15px/1.6 var(--sans); color: var(--navy-2); }

body.home2 .pageContent > ul, body.home2 .tabContent ul { margin: 0 6px 18px; }

/* 蓝色渐变按钮（.cg-btn / .dl-btn）不走正文链接色，否则白字会被染成青蓝且 hover 出现下划线。 */
body.home2 .pageContent a:not(.cg-btn):not(.dl-btn) { color: #0099cc; text-decoration: none; }

body.home2 .pageContent a:not(.cg-btn):not(.dl-btn):hover { color: #0b57b3; text-decoration: underline; }

body.home2 .pageContent strong { color: var(--navy); }

body.home2 .color01 { color: #c0452f; }

body.home2 .txtList li { margin-top: 12px; }

body.home2 .txtList li p { margin-bottom: 12px; line-height: 1.85; }

body.home2 .txtList li ol { margin-left: 22px; }

body.home2 .txtList li ol > li { margin-top: 16px; padding-left: 4px; }

body.home2 .txtList li .frame { border: 0; border-radius: 8px; box-shadow: 0 2px 10px rgba(44, 68, 120, .18); max-width: 100%; height: auto; margin-top: 8px; }

body.home2 .pageContent img { max-width: 100%; }

body.home2 .tabContent { margin-top: 18px; }



/* sub navigation (story chapters etc.) */

body.home2 .pageNav { width: auto; height: auto; background: none; overflow: visible; margin: 22px 0 6px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }

body.home2 .pageNav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

body.home2 .pageNav li { float: none; }

body.home2 .pageNav a {

  line-height: 32px; padding: 0 16px; border-radius: 16px; background: var(--soft); color: var(--navy); font-size: 14px;

  transition: background .15s, color .15s;

}

body.home2 .pageNav a:hover { background: #dbe8fb; color: var(--navy); }

body.home2 .pageNav a.active { background: var(--navy); color: #fff; }



/* tables */

body.home2 .tbList { border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; width: 100%; }

body.home2 .tbList th { background: linear-gradient(180deg, #eef3fc, #e3ebf8); color: var(--navy); font-size: 14px; padding: 9px 12px; }

body.home2 .tbList th, body.home2 .tbList td { border-bottom: 1px solid var(--line); padding: 9px 12px; }

body.home2 .tbList tr:last-child td { border-bottom: 0; }

body.home2 .tbList tr:nth-child(even) td { background: #fafcff; }

body.home2 .pageContent table[border="1"], body.home2 .pageContent table[rules] { border-color: var(--line); }



/* pagination */

body.home2 .pageList li a { padding: 4px 10px; border-radius: 6px; color: var(--navy); }

body.home2 .pageList li a:hover { background: var(--soft); text-decoration: none; }

body.home2 .pageList .now { background: var(--navy); color: #fff; border-radius: 6px; }



/* ---------- shared form controls / buttons ---------- */

body.home2 .pageContent select, body.home2 .event1_1 select, body.home2 .pageContent input[type="text"], body.home2 .pageContent input[type="password"] {

  height: 34px; padding: 0 10px; border: 1px solid #c9d5ea; border-radius: 8px; background: #fff; color: var(--ink);

  font: 14px var(--sans); outline: none; transition: border-color .15s, box-shadow .15s;

}

body.home2 .pageContent select:focus, body.home2 .event1_1 select:focus, body.home2 .pageContent input[type="text"]:focus {

  border-color: var(--sky); box-shadow: 0 0 0 3px rgba(106, 166, 238, .25);

}

body.home2 .pageContent input[type="button"], body.home2 .pageContent input[type="submit"], body.home2 .pageContent button {

  height: 34px; padding: 0 18px; border: 0; border-radius: 17px; cursor: pointer; color: #fff; font: 700 14px var(--sans);

  background: linear-gradient(180deg, #4d7fd0, var(--navy)); box-shadow: 0 2px 6px rgba(44, 68, 120, .3); transition: filter .15s, transform .05s;

}

body.home2 .pageContent input[type="button"]:hover, body.home2 .pageContent input[type="submit"]:hover, body.home2 .pageContent button:hover { filter: brightness(1.1); }

body.home2 .pageContent input[type="button"]:active, body.home2 .pageContent button:active { transform: translateY(1px); }

body.home2 .pageContent input:disabled, body.home2 .pageContent button:disabled, body.home2 .pageContent select:disabled { opacity: .5; cursor: not-allowed; }



/* ---------- narrow screens: stack the columns ---------- */

@media (max-width: 1000px) {

  body.home2 { min-width: 0; }

  body.home2 dl.column.inner { flex-direction: column; width: auto; padding: 0 12px; }

  body.home2 #main dl.column.inner .columnLeft.page,

  body.home2 #main dl.column.inner .columnCenter.page,

  body.home2 #main dl.column.inner .columnRight.page { flex: none; width: auto; margin: 0 0 16px; }

  body.home2 #main dl.column.inner .columnCenter.page { padding: 0 15px 24px; box-sizing: border-box; }

  body.home2 #main dl.column.inner .columnRight.page { display: none; }

}



/* DailyGift weekly table */

body.home2 #giftTable { border: 1px solid var(--line) !important; border-radius: 8px; overflow: hidden; border-collapse: separate !important; border-spacing: 0; }

body.home2 #giftTable th.table_title, body.home2 #giftTable .table_title { background: #495a92 !important; color: #fff; font-size: 14px; }

body.home2 #giftTable td { border: 0 !important; border-bottom: 1px solid var(--line) !important; }

body.home2 #giftTable tr:nth-child(even) td { background: #f7faff; }



/* Service/rules.html */

body.home2 .pageContent .ruleList { list-style: disc; margin: 0 0 14px 22px; }

body.home2 .pageContent .ruleList li { margin: 4px 0; }

body.home2 .pageContent p { margin: 0 0 12px; }

body.home2 .pageContent p.item { margin-left: 1em; text-indent: -1em; padding-left: 1em; }

body.home2 .pageContent p.note { color: var(--muted); font-size: 14px; }

body.home2 .pageContent h3 { margin-top: 18px; }

body.home2 .pageContent ol.ruleList { list-style: decimal; margin: 0 0 14px 28px; }



/* Shop/service.html (was an iframe of joypark's service.asp) */

body.home2 .svcTags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; padding: 0 0 16px; border-bottom: 1px solid var(--line); list-style: none; }

body.home2 .svcTags li { line-height: 32px; padding: 0 16px; border-radius: 16px; background: var(--soft); color: var(--navy); font-size: 14px; }

body.home2 .svcGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 16px; margin: 26px 20px 8px; padding: 0; list-style: none; }

body.home2 .svcGrid li { text-align: center; padding: 16px 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--card-shadow); }

body.home2 .svcGrid img { display: block; margin: 0 auto 10px; border-radius: 8px; }

body.home2 .svcGrid strong { display: block; color: var(--navy); font-size: 15px; }

body.home2 .svcGrid span { display: block; margin-top: 2px; color: #c0452f; font-weight: 700; }



/* Shop/bonus.html: rules -> login card (was an iframe of joypark's bonus_service.asp / Login_Form.asp) */

body.home2 .bonus .bonusFlow { margin: 6px 0 18px; text-align: center; }

body.home2 .bonus .bonusFlow img { max-width: 100%; height: auto; }

body.home2 .bonus ol.ruleList { list-style: decimal; margin: 0 0 14px 28px; }

body.home2 .bonus ul.ruleList { list-style: disc; margin: 0 0 14px 22px; }

body.home2 .bonus .bonusSteps { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 6px; margin: 10px 0 24px; }

body.home2 .bonus .bonusSteps .step { flex: 0 1 auto; padding: 8px 12px; border-radius: 10px; background: var(--soft); color: var(--navy); font-size: 13px; line-height: 1.5; text-align: center; border: 1px solid var(--line); }

body.home2 .bonus .bonusSteps .arrow { align-self: center; color: var(--sky); font-weight: 700; }

body.home2 .bonus .bonusBtns { display: flex; justify-content: center; gap: 14px; margin: 10px 0 6px; }

body.home2 .bonus .btnMain, body.home2 .bonus .btnGhost { display: inline-block; min-width: 104px; padding: 0 24px; height: 40px; line-height: 40px; border-radius: 20px; text-align: center; font: 700 15px/40px var(--sans); text-decoration: none; cursor: pointer; border: 0; }

body.home2 .bonus .btnMain { color: #fff; background: linear-gradient(180deg, #4d7fd0, var(--navy)); box-shadow: 0 2px 6px rgba(44, 68, 120, .3); }

body.home2 .bonus .btnMain:hover { filter: brightness(1.1); text-decoration: none; color: #fff; }

body.home2 .bonus .btnGhost { color: var(--navy); background: #fff; border: 1px solid #c9d5ea; }

body.home2 .bonus .btnGhost:hover { background: var(--soft); text-decoration: none; }

body.home2 .bonus .loginCard { position: relative; width: 470px; height: 272px; max-width: 100%; margin: 36px auto 28px; left: -8px; background: url(../images/Shop/bonus_login_bg.gif) no-repeat left top / 470px auto; }   /* original 409x237 picture at 1.15x */

body.home2 .bonus .loginCard .loginBox { position: absolute; left: 218px; top: 50px; width: 232px; text-align: center; }

body.home2 .bonus .loginCard h3 { margin: 0 0 10px; font: 700 16px/1.4 var(--sans); white-space: nowrap; color: #6b3b26; }

body.home2 .bonus .loginCard label { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }

body.home2 .bonus .loginCard label span { flex: 0 0 34px; text-align: right; color: #6b3b26; font-size: 14px; }

body.home2 .bonus .loginCard input[type="text"], body.home2 .bonus .loginCard input[type="password"] { flex: 0 0 128px; width: 128px; min-width: 0; height: 28px; padding: 0 6px; font-size: 13px; border: 1px solid #999; border-radius: 2px; background: #fff; }

body.home2 .bonus .loginCard .btnMain { display: block; width: 170px; margin: 4px auto 0; text-align: center; }

body.home2 .bonus .loginLinks { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 14px; }

body.home2 .bonus .loginLinks i { width: 1px; height: 13px; background: #d9b3a0; }



/* Shop/TradeMagnifier.html: 摆摊搜寻 form (inline sizes in the markup are overridden on purpose) */

body.home2 .commerce_search ul { width: auto; margin: 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; }

body.home2 .commerce_search ul li { float: none; height: auto; margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; color: #6b3b26; }

body.home2 .commerce_search select, body.home2 .commerce_search input[type="text"] { height: 36px !important; padding: 0 12px; border: 1px solid #e0bba9; border-radius: 18px; background-color: #fff; color: #4a3a33; font: 14px var(--sans); outline: 0; box-sizing: border-box; }

body.home2 .commerce_search select { min-width: 104px; padding-right: 8px; }

body.home2 .commerce_search #txtItem { width: 170px !important; }

body.home2 .commerce_search #txtPriceMin, body.home2 .commerce_search #txtPriceMax { width: 76px !important; text-align: center; padding: 0 8px; }

body.home2 .commerce_search select:focus, body.home2 .commerce_search input[type="text"]:focus { border-color: #4d7fd0; box-shadow: 0 0 0 3px rgba(77, 127, 208, .15); }

body.home2 .commerce_search #btnSearch { display: inline-block; height: 36px !important; min-width: 84px; padding: 0 22px; border-radius: 18px; text-align: center; font: 700 15px/36px var(--sans); color: #fff; text-decoration: none; background: linear-gradient(180deg, #4d7fd0, var(--navy)); box-shadow: 0 2px 6px rgba(44, 68, 120, .3); box-sizing: border-box; }

body.home2 .commerce_search #btnSearch:hover { filter: brightness(1.1); color: #fff; text-decoration: none; }

body.home2 .commerce_search ul li:nth-child(3) { flex: 1 1 240px; }

body.home2 .commerce_search #txtItem { width: 100% !important; }



/* Shop/TradeMagnifier(Loud).html: the other forms share the same controls */

body.home2 .commerce_loud select, body.home2 .commerce_loud input[type="text"] { height: 32px !important; padding: 0 12px; border: 1px solid #e0bba9; border-radius: 16px; background-color: #fff; color: #4a3a33; font: 14px var(--sans); outline: 0; box-sizing: border-box; vertical-align: middle; }

body.home2 .commerce_loud select:focus, body.home2 .commerce_loud input[type="text"]:focus { border-color: #4d7fd0; box-shadow: 0 0 0 3px rgba(77, 127, 208, .15); }

body.home2 .commerce_loud #btnLoud, body.home2 .commerce_loud input[type="submit"] { height: 32px !important; min-width: 76px; padding: 0 20px; border: 0; border-radius: 16px; font: 700 14px/32px var(--sans); color: #fff; cursor: pointer; vertical-align: middle; background: linear-gradient(180deg, #4d7fd0, var(--navy)); box-shadow: 0 2px 6px rgba(44, 68, 120, .3); }

body.home2 .commerce_loud #btnLoud:hover, body.home2 .commerce_loud input[type="submit"]:hover { filter: brightness(1.1); }

body.home2 .commerce_loud .loud_choose { display: block; width: 300px; max-width: 100%; margin: 0 auto; padding: 22px 0 26px; }

body.home2 .commerce_loud .loud_choose li { float: none; width: auto; height: auto; margin: 0 0 14px; padding: 0; text-align: center; line-height: 1.9; color: #333; font-size: 14px; }

body.home2 .commerce_loud .loud_choose select { width: 180px; }

body.home2 .commerce_loud #txtMsg { width: 250px !important; }

body.home2 .commerce_loud .loud_choose li:last-child { margin: 18px 0 0; text-align: center; }

body.home2 .commerce_loud .loud_choose input[type="submit"] { min-width: 120px; }



/* ---- native control look, as on the original 交易放大镜: plain small inputs, "搜寻" is a #09c text link; the beige "确认" pill (/images/Shop/enter_btn.png) for confirm actions ---- */

body.home2 .pageContent input[type="button"], body.home2 .pageContent button, body.home2 .commerce_search #btnSearch, body.home2 .commerce_loud #btnLoud {

  display: inline-block; height: auto !important; min-width: 0; padding: 0 2px; border: 0; border-radius: 0; background: none; box-shadow: none; filter: none; text-shadow: none;

  color: #0099cc; font: 13px/1.4 Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif; letter-spacing: 0; text-decoration: none; cursor: pointer;

}

body.home2 .pageContent input[type="button"]:hover, body.home2 .pageContent button:hover, body.home2 .commerce_search #btnSearch:hover, body.home2 .commerce_loud #btnLoud:hover { background: none; color: #495a92; text-decoration: underline; filter: none; }

body.home2 .pageContent input[type="submit"], body.home2 .commerce_loud input[type="submit"], body.home2 .bonus .btnMain, body.home2 .bonus .btnGhost {

  display: inline-block; height: 32px; min-width: 0; padding: 0 10px; border: 0; border-radius: 0; background: none; box-shadow: none; filter: none; text-shadow: none;

  color: #495a92; font: 700 14px/30px var(--sans); letter-spacing: 2px; text-align: center; text-decoration: none; cursor: pointer;

}

body.home2 .pageContent input[type="submit"]:hover, body.home2 .commerce_loud input[type="submit"]:hover, body.home2 .bonus .btnMain:hover, body.home2 .bonus .btnGhost:hover { background: none; color: #495a92; text-decoration: underline; filter: none; }

body.home2 .bonus .btnGhost { color: #666; }

body.home2 .commerce_search select, body.home2 .commerce_search input[type="text"], body.home2 .commerce_loud select, body.home2 .commerce_loud input[type="text"] {

  height: 26px !important; padding: 0 6px; border: 1px solid #999; border-radius: 2px; background: #fff; color: #333; font: 12px Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif; box-shadow: none; box-sizing: border-box;

}

body.home2 .commerce_search select:focus, body.home2 .commerce_search input[type="text"]:focus, body.home2 .commerce_loud select:focus, body.home2 .commerce_loud input[type="text"]:focus { border-color: #3fb8c6; box-shadow: none; }

body.home2 .commerce_search ul, body.home2 .commerce_search ul li { font-size: 12px; }

body.home2 .commerce_search ul { flex-wrap: nowrap; gap: 6px; margin: 0 22px; }

body.home2 .commerce_search select { min-width: 0; width: 78px; }

body.home2 .commerce_search { padding-bottom: 8px; }

body.home2 .commerce_search ul li:nth-child(3) { flex: 0 0 auto; }

body.home2 .commerce_search #txtItem { width: 128px !important; }

body.home2 .commerce_search #txtPriceMin, body.home2 .commerce_search #txtPriceMax { width: 58px !important; padding: 0 4px; text-align: left; }

body.home2 .commerce_search ul li, body.home2 .commerce_loud .loud_choose li { color: #333; }

body.home2 .commerce_loud .loud_choose select { width: 180px; }



/* 交易放大镜: refined inputs, no filled buttons */

body.home2 .commerce_search select, body.home2 .commerce_search input[type="text"], body.home2 .commerce_loud select, body.home2 .commerce_loud input[type="text"] {

  height: 32px !important; padding: 0 10px; border: 1px solid #ccc; border-radius: 4px; background-color: #fff; color: #2b3347; font: 13px var(--sans); transition: border-color .15s, box-shadow .15s;

}

body.home2 .commerce_search select:hover, body.home2 .commerce_search input[type="text"]:hover, body.home2 .commerce_loud select:hover, body.home2 .commerce_loud input[type="text"]:hover { border-color: #495a92; }

body.home2 .commerce_search select:focus, body.home2 .commerce_search input[type="text"]:focus, body.home2 .commerce_loud select:focus, body.home2 .commerce_loud input[type="text"]:focus { border-color: #495a92; box-shadow: 0 0 0 3px rgba(73, 90, 146, .2); outline: 0; }

body.home2 .commerce_search input[type="text"]::placeholder { color: #999; }

body.home2 .commerce_search select { width: 72px; padding: 0 4px; }

body.home2 .commerce_search #txtItem { width: 120px !important; }

body.home2 .commerce_search #txtPriceMin, body.home2 .commerce_search #txtPriceMax { width: 52px !important; padding: 0 6px; }

body.home2 .commerce_search ul { margin: 0 14px; gap: 4px; }

body.home2 .commerce_search ul li { white-space: nowrap; gap: 4px; }

body.home2 .commerce_search #btnSearch, body.home2 .commerce_loud #btnLoud { padding: 0 4px; white-space: nowrap; font: 700 14px/32px var(--sans); letter-spacing: 2px; color: #0099cc; }

body.home2 .commerce_search #btnSearch:hover, body.home2 .commerce_loud #btnLoud:hover { color: #495a92; text-decoration: underline; }



/* ---- 魔力公告 list + detail (News/list.html, News/detail.html) ---- */

body.home2 .newsPage { padding-top: 14px; }

/* the announcement rows: the original KM news.css (.news / .postTime / .gameName), picture copied to /images/News */

body.home2 .newsPage .news { margin: 0 10px 20px 10px; padding-bottom: 10px; border-bottom: 1px solid #e5e5e5; }

body.home2 .newsPage .news h2 { float: left; width: 500px; margin: 0; overflow: hidden; font: 700 15px/38px var(--sans); background: none; border: 0; padding: 0; }

body.home2 .newsPage .news h2 a { color: #0075a9; text-decoration: none; }

body.home2 .newsPage .news h2 a:hover { color: #000; }

body.home2 .newsPage .news .postTime { float: left; width: 52px; height: 38px; margin-right: 20px; background: url(../images/News/news_postTime_bg.gif) no-repeat; font-family: Verdana, Geneva, sans-serif; }

body.home2 .newsPage .news .timeYear { float: left; width: 52px; color: #fff; font-size: 10px; line-height: 16px; text-align: center; }

body.home2 .newsPage .news .timeMonth, body.home2 .newsPage .news .timeDay { float: left; width: 26px; color: #959595; font-size: 16px; line-height: 21px; text-align: center; }

body.home2 .newsEmpty { padding: 40px 0; text-align: center; color: #999; }

body.home2 .newsHead { margin: 0 0 6px; padding: 0 0 10px; border-bottom: 1px solid #ccc; font: 700 19px/1.5 var(--sans); color: #495a92; background: none; }

body.home2 .newsMeta { margin: 0 0 16px; color: #999; font-size: 13px; }

body.home2 .newsBody { font-size: 14px; line-height: 1.9; color: #333; word-break: break-word; }

body.home2 .newsBody img { max-width: 100%; height: auto; }

body.home2 .newsBody table { max-width: 100%; }

body.home2 .newsBody a { color: #0099cc; }

body.home2 .newsBack { margin: 26px 0 8px; text-align: center; }

body.home2 .newsBack a { color: #0099cc; font-weight: 700; }

body.home2 .newsBack.newsNav { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 30px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }

body.home2 .newsNav > span { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

body.home2 .newsNav .newsPrev { text-align: left; align-items: flex-start; }

body.home2 .newsNav .newsNext { text-align: right; align-items: flex-end; }

body.home2 .newsNav em { font-style: normal; font-size: 12px; color: #999; }

body.home2 .newsNav span a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; font-size: 14px; }

body.home2 .newsNav .newsList { flex: 0 0 auto; align-self: center; padding: 0 6px; white-space: nowrap; }



/* announcement detail: date + title row (same pieces as the list), kind on the right, then the body */

body.home2 .newsHeadRow { margin: 0 0 6px; padding-bottom: 10px; }

body.home2 .newsHeadRow h2 { width: 520px; }

body.home2 .newsKindLine { margin: 0 0 14px; padding: 0 4px; text-align: right; font-size: 13px; color: #0075a9; }

body.home2 .newsKindLine:before { content: "|"; margin-right: 10px; color: #999; }



/* 交易放大镜 server lists: no native arrow box, a small chevron in the site blue */

body.home2 .commerce_search select, body.home2 .commerce_loud select {

  -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;

  padding: 0 22px 0 10px !important;

  background: #fff url(data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23495a92' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>) no-repeat right 8px center !important;

}

body.home2 .commerce_search select { width: 88px !important; }

body.home2 .commerce_loud .loud_choose select { width: 180px !important; }

/* left menu, every page: the entries are centred; an entry with a second line (story chapters: V1.0 + title) is centred too and gets its underline under both lines */

body.home2 .page_sideNav li a { text-align: center; }

body.home2 .page_sideNav li a:has(span) { display: inline-block; height: auto; line-height: 1.35; padding: 8px 0 10px; }

body.home2 .page_sideNav li a:has(span)::after { bottom: 3px; }

body.home2 .page_sideNav li a span { display: block; text-align: center; }

body.home2 .page_sideNav li a.active span, body.home2 .page_sideNav li a:hover span { color: var(--muted); }



/* the three buttons on the right: pictures from 官网素材 (words are printed in them; the link text stays for screen readers) */
/* 交易放大镜 server tabs: the site's blue link colour had made the words the same colour as the teal tab; words stay white */

body.home2 .server ul li a, body.home2 .server ul li a:link, body.home2 .server ul li a:visited { color: #fff !important; background-color: #3094a4; font-weight: 400; text-decoration: none; }

body.home2 .server ul li a:hover { background-color: #254a56; color: #fff !important; text-decoration: none; }



/* 交易放大镜 title bars (交易大声公 【我也要喊 / 搜寻内容】, More): links are white on the teal bar */

body.home2 .commerce_loud .title a, body.home2 .commerce_rank .title a, body.home2 .commerce_search .title a,

body.home2 .commerce_loud .title a:link, body.home2 .commerce_loud .title a:visited, body.home2 .commerce_rank .title a:link, body.home2 .commerce_rank .title a:visited { color: #fff !important; text-decoration: none; }

body.home2 .commerce_loud .title a:hover, body.home2 .commerce_rank .title a:hover, body.home2 .commerce_search .title a:hover { color: #fff !important; text-decoration: underline; }



/* the first load of a JoyPark iframe (赞助服务 ...): a turning circle until its page is there */

body.home2 .jpWait { position: fixed; left: 50%; top: 50%; z-index: 90; width: 38px; height: 38px; margin: -19px 0 0 -19px; }

body.home2 .jpWait i { display: block; width: 100%; height: 100%; box-sizing: border-box; border: 4px solid #cfe9f1; border-top-color: #0099cc; border-radius: 50%; animation: jpwait .8s linear infinite; }

@keyframes jpwait { to { transform: rotate(360deg); } }



/* 上一则 / 下一则: the round teal buttons (a left / right turning arrow) beside the titles; the paler one when the mouse is over */

body.home2 .newsNav .newsPrev, body.home2 .newsNav .newsNext { flex-direction: row; align-items: center; gap: 12px; }

body.home2 .newsNav .newsNext { justify-content: flex-end; }

body.home2 .newsNav .nTx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

body.home2 .newsNav .newsNext .nTx { text-align: right; align-items: flex-end; }

body.home2 .newsNav a.nIcon { flex: 0 0 30px; width: 30px; height: 30px; padding: 0; overflow: visible; background: url(data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 28 28'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%2346d6d3'/><stop offset='1' stop-color='%2315a5b8'/></linearGradient></defs><rect width='28' height='28' rx='7' fill='url(%23g)'/><circle cx='14' cy='14' r='9.2' fill='white'/><path d='M11 13.4H16.4a3.4 3.4 0 0 1 0 6.8H12.6' fill='none' stroke='%2315a5b8' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/><path d='M13.1 10.4L10 13.4l3.1 3' fill='none' stroke='%2315a5b8' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / 30px 30px; }

body.home2 .newsNav .newsNext a.nIcon { background-image: url(data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 28 28'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%2346d6d3'/><stop offset='1' stop-color='%2315a5b8'/></linearGradient></defs><rect width='28' height='28' rx='7' fill='url(%23g)'/><circle cx='14' cy='14' r='9.2' fill='white'/><g transform='translate(28 0) scale(-1 1)'><path d='M11 13.4H16.4a3.4 3.4 0 0 1 0 6.8H12.6' fill='none' stroke='%2315a5b8' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/><path d='M13.1 10.4L10 13.4l3.1 3' fill='none' stroke='%2315a5b8' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/></g></svg>"); }

body.home2 .newsNav .newsPrev:hover a.nIcon { background-image: url(data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 28 28'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23a4e8de'/><stop offset='1' stop-color='%2378d4cf'/></linearGradient></defs><rect width='28' height='28' rx='7' fill='url(%23g)'/><circle cx='14' cy='14' r='9.2' fill='white'/><path d='M11 13.4H16.4a3.4 3.4 0 0 1 0 6.8H12.6' fill='none' stroke='%2347bdbd' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/><path d='M13.1 10.4L10 13.4l3.1 3' fill='none' stroke='%2347bdbd' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }

body.home2 .newsNav .newsNext:hover a.nIcon { background-image: url(data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 28 28'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23a4e8de'/><stop offset='1' stop-color='%2378d4cf'/></linearGradient></defs><rect width='28' height='28' rx='7' fill='url(%23g)'/><circle cx='14' cy='14' r='9.2' fill='white'/><g transform='translate(28 0) scale(-1 1)'><path d='M11 13.4H16.4a3.4 3.4 0 0 1 0 6.8H12.6' fill='none' stroke='%2347bdbd' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/><path d='M13.1 10.4L10 13.4l3.1 3' fill='none' stroke='%2347bdbd' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/></g></svg>"); }



/* 公告列表 paging: the four buttons are the pictures of pageBar.gif (first / previous / next / last), the numbers are plain, the open page bold */

body.home2 .newsPager { display: flex; justify-content: center; align-items: center; margin: 18px 0 6px; font-size: 14px; }

body.home2 .newsPager a, body.home2 .newsPager strong { display: inline-block; margin: 0 4px; padding: 2px 4px; border: 0; border-radius: 0; background: none; line-height: 22px; text-decoration: none; }

body.home2 .newsPager a { color: #0099cc; }

body.home2 .newsPager a:hover { color: #495a92; background: none; text-decoration: underline; }

body.home2 .newsPager strong { color: #0099cc; font-weight: 400; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }      /* the open page: underlined, the same colour as the others */

body.home2 .newsPager a.pgBtn { flex: 0 0 15px; width: 15px; height: 22px; margin: 0 7px; padding: 0; overflow: hidden; text-indent: -9999px; white-space: nowrap; background: url(../images/default/pageBar.gif) no-repeat 0 0; }

body.home2 .newsPager a.pgBtn:hover { background-color: transparent; text-decoration: none; opacity: .7; }

body.home2 .newsPager a.pgFirst { background-position: 0 0; }

body.home2 .newsPager a.pgPrev { background-position: 0 -22px; }

body.home2 .newsPager a.pgNext { background-position: 0 -44px; }

body.home2 .newsPager a.pgLast { background-position: 0 -66px; }



/* 公告 detail, the row under the text: three even columns, everything centred on one line; 回公告列表 is a small pill button */

body.home2 .newsBack.newsNav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; }

body.home2 .newsNav .newsPrev, body.home2 .newsNav .newsNext { display: flex; align-items: center; gap: 12px; min-width: 0; }

body.home2 .newsNav .newsPrev { justify-self: start; }

body.home2 .newsNav .newsNext { justify-self: end; flex-direction: row; justify-content: flex-end; }

body.home2 .newsNav .nTx { display: block; min-width: 0; }

body.home2 .newsNav .nTx a { display: block; line-height: 30px; font-size: 14px; font-weight: 400; color: #0075a9; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }

body.home2 .newsNav .nTx a:hover { color: #000; }

body.home2 .newsNav .newsNext .nTx { text-align: right; }

body.home2 .newsNav a.newsList { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 18px 0 14px; border-radius: 17px; background: #e8f5fa; color: #0b85ad; font-size: 13px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; text-decoration: none; transition: background .15s; }

body.home2 .newsNav a.newsList:hover { background: #cdeefb; }

body.home2 .newsNav a.newsList i { flex: 0 0 16px; width: 16px; height: 16px; background: url(data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M5.5 4h8M5.5 8h8M5.5 12h8' stroke='%230b85ad' stroke-width='1.7' stroke-linecap='round'/><circle cx='2.3' cy='4' r='1.1' fill='%230b85ad'/><circle cx='2.3' cy='8' r='1.1' fill='%230b85ad'/><circle cx='2.3' cy='12' r='1.1' fill='%230b85ad'/></svg>) no-repeat center / 16px 16px; }

body.home2 .newsNav .nTx { flex: 0 1 auto; overflow: hidden; }

body.home2 .newsNav .newsPrev, body.home2 .newsNav .newsNext { overflow: hidden; }

body.home2 .newsNav .newsPrev, body.home2 .newsNav .newsNext { max-width: 100%; }



/* MSN图示 thumbnails: the 100 x 100 pictures stay square (the cell used to squeeze them to 80 wide while the height stayed 100) */

body.home2 .pageContent table td:has(> img[src*="Download/MSN_CG"]) { padding: 6px; }

body.home2 .pageContent table img[src*="Download/MSN_CG"] { display: block; margin: 0 auto; max-width: 100%; height: auto; }

/* 回列表: no background (the list icon and the words only) */

body.home2 .newsNav a.newsList { height: auto; padding: 0 4px; border-radius: 0; background: none; }

body.home2 .newsNav a.newsList:hover { background: none; color: #0099cc; text-decoration: underline; text-underline-offset: 4px; }

/* 回列表: the words themselves are in the exact middle; the small list icon hangs on their left */

body.home2 .newsNav a.newsList { position: relative; display: block; line-height: 30px; padding: 0 4px; }

body.home2 .newsNav a.newsList i { position: absolute; right: 100%; top: 50%; margin: -8px 4px 0 0; }



/* 动画下载: the preview player above the download button */

body.home2 .pageContent li.movItem { list-style: none; margin: 6px 0 10px; }

body.home2 .pageContent video.movPreview { display: block; width: 100%; max-width: 480px; background: #000; border-radius: 6px; }

body.home2 .pageContent .movErr { margin: 6px 0; color: #c00; }

