/* 追覓天堂 — shared visual system */
:root {
  --ink: #0c0e10;
  --panel: #14171a;
  --gold: #c7a477;
  --light: #eee8df;
  --muted: #a8a39a;
  --line: rgba(199, 164, 119, .23)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px
}

body.realm {
  margin: 0;
  background: var(--ink);
  color: var(--light);
  font: 16px/1.8 "Microsoft JhengHei", "PingFang TC", sans-serif;
  overflow-x: clip
}

body.realm a {
  color: inherit;
  text-decoration: none;
  opacity: 1;
  white-space: normal
}

body.realm a:hover {
  color: var(--gold)
}

button,
a,
input {
  touch-action: manipulation
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #e3be89;
  outline-offset: 5px
}

img {
  max-width: 100%;
  height: auto
}

button {
  font: inherit;
  cursor: pointer
}

button:disabled {
  cursor: default
}

::selection {
  background: #856440;
  color: white
}

.realm h1,
.realm h2,
.realm h3 {
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--light)
}

.realm p {
  line-height: 1.9
}

.wrap {
  width: min(1220px, calc(100% - 80px));
  margin: auto
}

.eyebrow {
  display: block;
  color: var(--gold);
  font: 11px/1.6 Georgia, serif;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 18px
}

.realm-header {
  height: 88px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 14, 16, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(15px)
}

.realm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 45px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font: 26px Georgia, serif;
  clip-path: polygon(50% 0, 100% 15%, 100% 85%, 50% 100%, 0 85%, 0 15%)
}

.brand strong {
  display: block;
  font: 600 25px/1.2 "PMingLiU", serif;
  letter-spacing: .18em
}

.brand small {
  display: block;
  font: 8px/2 Georgia, serif;
  letter-spacing: .35em;
  color: var(--gold);
  margin-top: 5px
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 27px
}

.nav-links a {
  font-size: 13px;
  letter-spacing: .08em
}

.nav-links .nav-download {
  padding: 11px 23px;
  border: 1px solid var(--gold);
  color: var(--gold)
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--light);
  padding: 7px 13px
}

.realm .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  min-height: 52px;
  padding: 13px 28px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 14px;
  letter-spacing: .1em;
  transition: background .2s, transform .2s
}

.realm .button.primary {
  background: var(--gold);
  color: #14110e
}

.realm .button:hover {
  background: #dfbd8d;
  color: #15110d;
  transform: translateY(-2px)
}

.hero {
  height: min(790px, calc(100svh - 88px));
  min-height: 600px;
  position: relative;
  isolation: isolate;
  background: #131719 url('../board/notice/img/aden_reverse_indexbg.jpg') center/cover no-repeat
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 10, 12, .88), rgba(9, 12, 14, .25) 75%), linear-gradient(0deg, #0c0e10, transparent 40%);
  z-index: -1
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: .65
}

.hero .wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  padding-bottom: 45px
}

.hero h1 {
  font-size: clamp(52px, 6.5vw, 94px);
  line-height: 1.27;
  margin: 5px 0 24px;
  text-shadow: 0 4px 35px #000;
  letter-spacing: .12em
}

.hero h1 em {
  font-style: normal;
  color: #d6b88f
}

.hero-copy {
  max-width: 490px;
  color: #c1bcb3;
  font-size: 15px
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 25px
}

.hero-foot {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  color: #a8a39a;
  font: 11px Georgia, serif;
  letter-spacing: .18em
}

.video-toggle {
  position: absolute;
  right: 40px;
  bottom: 80px;
  z-index: 2;
  background: #101316aa;
  border: 1px solid var(--line);
  color: var(--light);
  padding: 8px 14px;
  font-size: 12px
}

.section {
  padding: 92px 0;
  position: relative;
  border-bottom: 1px solid var(--line)
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 35px;
  gap: 24px
}

.section-heading h2 {
  font-size: 34px;
  margin: 0
}

.section-heading .eyebrow {
  margin-bottom: 10px
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 50px
}

.news-tabs {
  display: flex;
  gap: 23px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px
}

.news-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 0;
  color: var(--muted);
  font-size: 13px
}

.news-tabs button.active {
  color: var(--gold);
  border-color: var(--gold)
}

.news-panel[hidden],
.news-row[hidden] {
  display: none !important
}

.news-row {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) 80px;
  gap: 12px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid #ffffff0b;
  font-size: 14px
}

.news-row .tag {
  color: var(--gold);
  font-size: 11px
}

.news-row time {
  color: var(--muted);
  font: 11px Georgia, serif;
  text-align: right
}

.news-row:first-child .news-label {
  color: #dcc19b
}

.more-news {
  margin-top: 20px;
  color: var(--gold);
  background: transparent;
  border: 0;
  font-size: 12px;
  letter-spacing: .1em
}

.feature-story {
  display: block;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden
}

.feature-story img {
  display: block;
  width: 100%;
  height: 226px;
  object-fit: cover;
  transition: transform .6s
}

.feature-story:hover img {
  transform: scale(1.035)
}

.feature-story div {
  padding: 24px 27px
}

.feature-story h3 {
  font-size: 25px;
  margin: 5px 0 10px
}

.feature-story p {
  font-size: 13px;
  color: var(--muted);
  margin: 0
}

.world-section {
  background: linear-gradient(90deg, #0c0e10ee, #0c0e10b5), url('../board/notice/img/notice_2_bg_1.jpg') center/cover
}

.world-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center
}

.world-grid h2 {
  font-size: 42px;
  line-height: 1.5;
  margin: 12px 0 24px
}

.world-grid p {
  color: var(--muted);
  max-width: 420px
}

.principles {
  display: grid;
  gap: 0
}

.principle {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line)
}

.principle b {
  font: 18px Georgia, serif;
  color: var(--gold)
}

.principle h3 {
  font-size: 21px;
  margin: 0 0 9px
}

.principle p {
  font-size: 14px;
  margin: 0;
  max-width: none
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line)
}

.library-card {
  position: relative;
  min-height: 150px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .2s
}

.library-card:hover {
  background: #c7a4770b
}

.library-card small {
  color: var(--gold);
  font: 11px Georgia, serif;
  letter-spacing: .15em
}

.library-card h3 {
  font-size: 20px;
  margin: 15px 0 0
}

.library-card span {
  position: absolute;
  bottom: 25px;
  right: 25px;
  color: var(--gold)
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px
}

.event-card {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  min-width: 0
}

.event-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  filter: saturate(.65);
  transition: filter .3s
}

.event-card:hover img {
  filter: saturate(1)
}

.event-card h3 {
  font-size: 20px;
  margin: 18px 0 9px
}

.event-card p {
  font: 12px/1.6 Georgia, serif;
  color: var(--muted);
  margin: 0
}

.event-status {
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 3px 7px;
  color: var(--gold);
  margin-left: 8px
}

.service-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 38px
}

.service-grid article {
  border-left: 1px solid var(--line);
  padding-left: 30px
}

.service-grid h3 {
  font-size: 24px;
  margin: 0 0 15px
}

.service-grid p {
  color: var(--muted);
  font-size: 14px
}

.service-grid a:not(.button) {
  display: block;
  color: var(--gold);
  font-size: 14px;
  margin-top: 12px
}

.realm-footer {
  padding: 45px 0;
  background: #080a0b;
  border-top: 1px solid var(--line)
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px
}

.realm-footer p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  letter-spacing: .05em
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #151719;
  border: 1px solid var(--line);
  color: var(--gold)
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 999;
  background: #eee;
  color: #111 !important;
  padding: 12px
}

.skip-link:focus {
  top: 10px
}

/* Existing content, tables and Bootstrap tab panels retain their data and behavior. */
.realm.inner .container {
  max-width: 1180px;
  width: 100%;
  padding-left: 24px;
  padding-right: 24px
}

.page-banner {
  padding: 60px 0 45px;
  background: linear-gradient(90deg, #0c0e10f0, #0c0e10b0), url('../board/notice/img/aden_reverse_indexbg.jpg') center 45%/cover;
  border-bottom: 1px solid var(--line)
}

.page-banner h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 12px 0
}

.breadcrumbs {
  font-size: 12px;
  color: var(--muted)
}

.realm.inner .pfblock {
  padding: 45px 0;
  background: transparent !important
}

.realm.inner .pfblock-gray,
.realm.inner .powerbook,
.realm.inner .tab-content {
  background-color: transparent !important;
  background-image: none !important;
  color: var(--light)
}

.realm.inner .pfblock-header {
  margin-bottom: 25px
}

.realm.inner .pfblock-header:empty {
  display: none
}

.realm.inner .pfblock-line {
  background: var(--gold);
  height: 1px
}

.realm.inner .wow {
  visibility: visible !important;
  animation: none !important
}

.realm.inner .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  border-color: var(--line);
  gap: 6px;
  margin-bottom: 24px
}

.realm.inner .nav-tabs .nav-link {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  font-size: 14px;
  padding: 11px 17px;
  border-radius: 0;
  white-space: normal
}

.realm.inner .nav-tabs .nav-link.active {
  background: var(--gold);
  color: #191510;
  border-color: var(--gold)
}

.realm.inner .nav-tabs .nav-link:hover {
  color: #fff;
  background: #413628
}

.realm.inner h2 {
  font-size: 27px
}

.realm.inner h3 {
  font-size: 23px
}

/* 舊版資料區塊曾指定黑字；深色主題統一使用暖白色。 */
.realm.inner .powerbook,
.realm.inner .powerbook_2,
.realm.inner .powerbook_3,
.realm.inner .powerbook_2 table,
.realm.inner .powerbook_3 table {
  color: var(--light);
}

/* 清除舊版頁籤的黑色光暈，避免選取文字模糊。 */
.realm.inner .nav-tabs .nav-link {
  text-shadow: none;
}

.realm.inner p,
.realm.inner td,
.realm.inner th {
  line-height: 1.8
}

.realm.inner table {
  color: var(--light);
  background: #14171a;
  border-color: var(--line) !important;
  max-width: 100%
}

.realm.inner td,
.realm.inner th {
  border-color: var(--line) !important;
  padding: 12px 14px
}

.realm.inner thead,
.realm.inner th {
  background: #24231f;
  color: #dfc7a5
}

.realm.inner tbody tr:nth-child(even) {
  background: #ffffff03
}

.realm.inner .table-hover tbody tr:hover {
  color: var(--light);
  background: #c7a4770c
}

.realm.inner td[bgcolor],
.realm.inner table[bgcolor] {
  background-color: #171a1c
}

.realm.inner font[color="#000000"] {
  color: var(--light)
}

.realm.inner img {
  max-width: 100%;
  height: auto
}

.realm.inner .table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin: 18px 0;
  scrollbar-color: var(--gold) #151719
}

.realm.inner .table-scroll>table {
  margin: 0;
  width: 100%;
  min-width: 550px
}

.realm.inner .grid figure {
  background: #171a1c
}

.realm.inner .grid {
  margin-bottom: 24px
}

.realm.inner .grid figure img {
  opacity: 1
}

.realm.inner .pfblock-title {
  color: var(--light)
}

.realm.inner .File_center {
  margin-bottom: 20px
}

.realm.inner .text-danger {
  color: #f19182 !important
}

.realm.inner .text-primary {
  color: #a7c6de !important
}

.realm.inner .text-success {
  color: #a6c8a3 !important
}

.realm.inner .text-warning {
  color: #e6c98c !important
}

.realm.inner .calltoaction {
  background: #151719;
  padding: 35px
}

.download-lead {
  margin: 28px 0;
  padding: 26px;
  border: 1px solid var(--line);
  background: #171a1c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px
}

.download-lead h2 {
  margin: 0 0 8px
}

.download-lead p {
  margin: 0;
  color: var(--muted);
  font-size: 14px
}

.realm.recipe {
  padding: 20px;
  min-width: 0;
  background: #101315
}

.recipe .recipe-brand {
  font: 18px "PMingLiU", serif;
  color: var(--gold);
  padding-bottom: 14px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--line);
  letter-spacing: .15em
}

.realm.recipe table {
  max-width: 100%;
  color: var(--light);
  height: auto;
  background: #171a1c
}

.realm.recipe td {
  padding: 8px;
  line-height: 1.7
}

.realm.recipe td[bgcolor] {
  background: #25241f
}

.realm.recipe font,
.realm.recipe strong,
.realm.recipe .unnamed1 {
  color: var(--light) !important
}

.realm.recipe table table {
  margin: auto
}

.realm.recipe .table-scroll {
  overflow: auto
}

.realm.recipe img {
  max-width: 100%
}

@media(min-width:1500px) {
  .hero .wrap {
    padding-bottom: 65px
  }
}

@media(max-width:1000px) {
  .wrap {
    width: calc(100% - 48px)
  }

  .nav-links {
    gap: 16px
  }

  .nav-links a {
    font-size: 12px
  }

  .brand strong {
    font-size: 22px
  }

  .news-layout {
    gap: 28px
  }

  .library-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .world-grid {
    gap: 40px
  }

  .service-grid {
    gap: 24px
  }

  .event-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:760px) {
  .wrap {
    width: calc(100% - 40px)
  }

  .realm-header {
    height: 74px
  }

  .menu-toggle {
    display: block
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    background: #101315;
    padding: 22px;
    box-shadow: 0 18px 25px #0008;
    border-bottom: 1px solid var(--line)
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0
  }

  .nav-links a {
    padding: 12px;
    font-size: 15px
  }

  .nav-links .nav-download {
    margin-top: 10px;
    text-align: center
  }

  .hero {
    height: 690px;
    min-height: 0;
    max-height: none;
    background-position: 60% center
  }

  .hero h1 {
    font-size: 55px
  }

  .hero .wrap {
    padding-bottom: 45px
  }

  .hero-copy {
    max-width: 320px
  }

  .hero-actions {
    gap: 10px
  }

  .realm .button {
    padding: 12px 20px;
    gap: 15px
  }

  .hero-foot {
    font-size: 9px;
    letter-spacing: .08em
  }

  .video-toggle {
    right: 20px;
    bottom: 65px
  }

  .section {
    padding: 58px 0
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px
  }

  .section-heading h2 {
    font-size: 29px
  }

  .news-layout,
  .world-grid,
  .service-grid {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .news-row {
    grid-template-columns: 30px minmax(0, 1fr) 67px;
    gap: 8px;
    font-size: 13px
  }

  .news-row time {
    font-size: 10px
  }

  .world-grid h2 {
    font-size: 34px
  }

  .library-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .library-card {
    padding: 20px;
    min-height: 130px
  }

  .library-card h3 {
    font-size: 18px
  }

  .event-grid {
    gap: 25px 16px
  }

  .event-card img {
    height: auto;
    aspect-ratio: 1.6;
    object-fit: cover
  }

  .event-card h3 {
    font-size: 17px
  }

  .service-grid article {
    padding-left: 20px
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start
  }

  .realm.inner .container {
    padding-left: 20px;
    padding-right: 20px
  }

  .realm.inner .tab-pane.container {
    padding-left: 0;
    padding-right: 0
  }

  .realm.inner .pfblock {
    padding: 30px 0
  }

  .realm.inner .nav-tabs .nav-link {
    font-size: 12px;
    padding: 9px 11px
  }

  .download-lead {
    flex-direction: column;
    align-items: flex-start
  }

  .page-banner {
    padding: 35px 0
  }

  .realm.inner td,
  .realm.inner th {
    padding: 9px
  }

  .realm.recipe {
    padding: 12px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important
  }

  .hero video {
    display: none
  }
}
