/* ==========================================================================
   全域基礎樣式
   ========================================================================== */
html, body {
    padding: 0;
    margin: 0;
    width: 100%;
    min-height: 100%;
    font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    background: #f5f5f5;
}

html {
    scroll-padding-top: 160px;
}

a {
    text-decoration: none;
}

/* ==========================================================================
   佈局與容器
   ========================================================================== */
.container {
    width: 100%;
    max-width: 720px;
    margin: 0px auto;
    box-sizing: border-box;
}

.box {
    box-sizing: border-box;
    background: #fff;
    margin-bottom: 10px;
    padding: 2px;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
}

.box.ad p {
    margin: 0;
    padding: 0;
}

.box img {
    width: 100%;
    display: block;
}

/* 頂部選單與日期 */
.menuicon {
    background: #e1fbe1;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px 6px;
    box-sizing: border-box;
}

.menuicon img {
    width: 84px;
}

.riqi {
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-weight: 700;
    background: green;
    color: #fff;
    border-radius: 5px;
    margin: 2px 0;
    font-size: 11pt;
}

/* ==========================================================================
   標頭樣式 (.tit) - 藍金圖案背景 + 保底深藍背景
   ========================================================================== */
.tit {
    font-size: 18px !important;
    color: #ffe895 !important; /* 亮金色文字 */
    line-height: 44px !important;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); /* 加深字體陰影 */
    margin: 0 0 4px 0 !important;
    border-radius: 3px;
    
    /* 1. 保底深藍色背景（圖片加載失敗時也不會變白底） */
    background-color: #0d2a52 !important; 
    
    /* 2. 背景圖片（若路徑不同請修改 url 內的路徑） */
    background-image: url('../images/title-bg.jpg') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 100% 100% !important;
    
    box-shadow: none !important;
    border: none;
}

.titsle {
    font-size: 15px;
    font-weight: bold;
}

/* 跑馬燈外框動畫 */
.rememberdomain {
    margin: 5px;
    display: block;
    border: .5em solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, repeating-linear-gradient(-45deg, #9a0001, red 12.5%, transparent 0, transparent 25%, #058d45 0, #014e1e 37.5%, transparent 0, transparent 50%) 0 / 1.5em 1.5em;
    -webkit-animation: ants 12s linear infinite;
    animation: ants 12s linear infinite;
    box-shadow: 0 0 5px #999;
    border-radius: 5px;
}

.rememberdomain table {
    width: 100%;
}

.rememberdomain td {
    border: 1px solid #ededed;
    padding: 6px;
}

/* Swiper 輪播樣式 */
.swiper-nav {
    text-align: center;
    color: #fff;
    font-weight: bold;
}

.swiper-nav .swiper-slide {
    width: 110px !important;
    padding: 5px 0;
    color: #303133;
    font-size: 13px;
    font-weight: bold;
    border-radius: 2px;
    border-right: 1px solid #ededed;
}

.swiper-nav .active-nav {
    background: #3d7eff;
    color: #fff;
}

/* ==========================================================================
   表格基礎與四種顏色邊框
   ========================================================================== */
.box table {
    width: 100%;
    box-sizing: border-box;
    border-collapse: collapse;
}

.box table td {
    border-collapse: collapse;
}

.border1 td {
    border: 1px solid rgb(0, 112, 192);
    padding: 7px 0;
}

.border2 td {
    border: 1px solid #ddd7d7;
    padding: 7px 0;
}

.border3 td {
    border: 1px solid rgb(112, 48, 160);
    padding: 7px 0;
}

.border4 td {
    border: 1px solid rgb(255, 0, 0);
    padding: 7px 0;
}

.border1 td p, .border2 td p, .border3 td p, .border4 td p {
    margin: 0;
}

/* 綜合資料區塊 */
.zhzl {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    box-sizing: border-box;
    margin-top: 10px;
    margin-bottom: 20px;
}

.zhzl .item {
    width: 25%;
    box-sizing: border-box;
    padding: 2px 3px;
}

.zhzl a {
    line-height: 40px;
    text-align: center;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 5px;
    display: block;
    color: #333;
    cursor: pointer;
    text-decoration: none;
}

/* ==========================================================================
   粉色中獎表格 (.custom-jiuxiao-box)
   ========================================================================== */
.custom-jiuxiao-box .jiuxiao-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-jiuxiao-box .jiuxiao-table td {
    border: 1px solid #f2dede;
    padding: 8px 5px;
    text-align: center;
}

.custom-jiuxiao-box .col-qishu {
    width: 25%;
    font-weight: bold;
    color: #333;
}

.custom-jiuxiao-box .red-num {
    color: #d9534f;
    font-weight: bold;
}

.custom-jiuxiao-box .col-content {
    color: #d9534f;
    font-weight: bold;
    font-size: 15px;
}

.custom-jiuxiao-box .col-result {
    width: 20%;
}

.custom-jiuxiao-box .hit-tag {
    background-color: #d9534f;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
    display: inline-block;
}

.custom-jiuxiao-box .unknown-tag {
    color: #999;
    font-weight: bold;
}

/* ==========================================================================
   綠色公開卡片 (.custom-ninexiao-card)
   ========================================================================== */
.custom-ninexiao-card {
    border: 2px solid #5cb85c;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.custom-ninexiao-card .tit-header {
    background-color: #5cb85c;
    color: #fff;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.custom-ninexiao-card .new-tag {
    background-color: #d9534f;
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
    margin-right: 8px;
    line-height: 1.2;
}

.custom-ninexiao-card .card-body {
    padding: 10px;
    background-color: #f9fdf9;
}

.custom-ninexiao-card .custom-content-item {
    padding: 6px 0;
    border-bottom: 1px dashed #d6e9c6;
    color: #3c763d;
    font-weight: bold;
    line-height: 1.5;
}

.custom-ninexiao-card .custom-content-item:last-child {
    border-bottom: none;
}

/* ==========================================================================
   推薦高手區 (.tjgz-box) 圖片同款風格樣式
   ========================================================================== */
.tjgz-box {
    width: 100%;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 3px;
}

.tjgz-title {
    background: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%);
    border: 1px solid #cccccc;
    border-radius: 3px;
    text-align: center;
    padding: 8px 0;
    font-size: 18px;
    font-weight: bold;
    color: #cc9900;
    text-shadow: 1px 1px 0px #ffffff, 0px 0px 1px #000;
    margin-bottom: 4px;
}

.tjgz-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
}

.tjgz-card {
    background: linear-gradient(to bottom, #fffdf0 0%, #fcf7d9 100%); /* 淡黃背景 */
    border: 1px solid #e6dfb8;
    border-radius: 4px;
    padding: 6px 8px;
    box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0,0,0,0.05);
}

.tjgz-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
}

.badge-tjt {
    background: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 4px;
    border: 1px solid #c080ff;
    margin-right: 6px;
    flex-shrink: 0;
    line-height: 1.2;
}
.badge-tjt .t1 { color: #ff0055; }
.badge-tjt .t2 { color: #00aa00; }
.badge-tjt .t3 { color: #0088ff; }

.txt-qi {
    color: #0000ff;
    font-weight: bold;
    margin-right: 6px;
    flex-shrink: 0;
}

.txt-name {
    color: #0000ff;
    font-weight: bold;
    margin-right: 4px;
}

.txt-title {
    color: #0000ff;
    font-weight: bold;
}

.txt-extra {
    color: #0000ff;
    font-weight: bold;
    margin-left: 6px;
}

.txt-right-author {
    color: #ff0000;
    font-weight: bold;
    margin-left: auto;
    flex-shrink: 0;
}

/* ==========================================================================
   響應式媒體查詢 (RWD)
   ========================================================================== */
@media screen and (max-width: 710px) {
    .menuicon img { width: 66px; }
    .menuicon { padding: 10px 0; }
    .swiper-nav .swiper-slide { width: 90px !important; }
}

@media screen and (max-width: 500px) {
    .menuicon img { width: 62px; }
    .menuicon { padding: 10px 0; }
    .swiper-nav .swiper-slide { width: 90px !important; }
}

@media screen and (max-width: 400px) {
    .menuicon img { width: 58px; }
    .menuicon { padding: 10px 0; }
    .swiper-nav .swiper-slide { width: 90px !important; }
}