html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.hk-body {
    background: radial-gradient(1000px 700px at 20% 10%, rgba(64,180,255,.20), transparent 55%), radial-gradient(900px 600px at 90% 20%, rgba(120,220,255,.12), transparent 55%), #061a2e;
    min-height: 100vh;
}

.hk-nav {
    background: linear-gradient(90deg, #0b4aa6, #0b2f6b);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.hk-hero {
    background: linear-gradient(135deg, rgba(32,150,255,.95), rgba(9,30,60,.92));
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.hk-card {
    background: rgba(10, 28, 52, .78);
    border: 1px solid rgba(255,255,255,.10);
    color: #e8f6ff;
    box-shadow: 0 18px 60px rgba(0,0,0,.25);
}

.hk-btn {
    background: rgba(40, 160, 255, .35);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
}

    .hk-btn:hover {
        background: rgba(40, 160, 255, .55);
    }

.hk-soft {
    border: 1px solid rgba(255,255,255,.12);
}

.border-white-10 {
    border-color: rgba(255,255,255,.10) !important;
}

/* 六宮格面板（像截圖） */
.portal-panel {
    background: #fff;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    height: 100%;
}

.portal-panel__header {
    background: #0b2f6b; /* 深藍標題條 */
    color: #fff;
    font-weight: 800;
    text-align: center;
    padding: 10px 12px;
    letter-spacing: .5px;
}

.portal-panel__body {
    padding: 12px 14px;
    color: #0b1b2b;
}

/* 列表 */
.portal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-list__item {
    padding: 7px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

    .portal-list__item:last-child {
        border-bottom: none;
    }

.portal-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0b1b2b;
    text-decoration: none;
}

    .portal-link:hover {
        text-decoration: underline;
    }

.portal-link__icon {
    color: #0b2f6b;
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.portal-link__text {
    font-weight: 700;
}

/* 最新消息 */
.portal-news__item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

    .portal-news__item:last-child {
        border-bottom: none;
    }

.portal-news__title {
    font-weight: 800;
    margin-top: 6px;
}

.portal-news__content {
    color: rgba(0,0,0,.65);
    font-size: 14px;
    margin-top: 4px;
}

.portal-empty {
    color: rgba(0,0,0,.55);
    font-size: 14px;
}