:root {
  --logo-bg: #284053;
  --logo-text: #fff2e2;
  --gold: #c4a35a;
  --gold-light: #e8d4a8;
  --red: #8b2323;
  --green: #2e7d32;
}
[data-theme="light"] {
  --bg-primary: #f8f5f0;
  --bg-secondary: #f0ebe0;
  --bg-card: #ffffff;
  --bg-dark-section: #284053;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #888888;
  --text-on-dark: #fff2e2;
  --border-color: #e0e0e0;
  --shadow: rgba(26, 26, 26, 0.08);
  --shadow-hover: rgba(26, 26, 26, 0.12);
  --orbit-color: var(--gold-light);
  --notice-bg: #fafafa;
  --input-bg: #ffffff;
  --success-bg: #e8f5e9;
  --success-border: #a5d6a7;
  --error-bg: #ffebee;
  --error-border: #ef9a9a;
}
[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #242424;
  --bg-card: #2a2a2a;
  --bg-dark-section: #0f0f0f;
  --text-primary: #fff2e2;
  --text-secondary: #c0b8a8;
  --text-muted: #888888;
  --text-on-dark: #fff2e2;
  --border-color: #3a3a3a;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.5);
  --orbit-color: var(--gold);
  --notice-bg: #222222;
  --input-bg: #333333;
  --success-bg: #1b3d1f;
  --success-border: #4caf50;
  --error-bg: #3d1f1f;
  --error-border: #f44336;
}
@-webkit-keyframes bounce {
  0%,
  100% {
    -webkit-transform: translateX(-50%) translateY(0);
            transform: translateX(-50%) translateY(0);
  }
  50% {
    -webkit-transform: translateX(-50%) translateY(10px);
            transform: translateX(-50%) translateY(10px);
  }
}
@keyframes bounce {
  0%,
  100% {
    -webkit-transform: translateX(-50%) translateY(0);
            transform: translateX(-50%) translateY(0);
  }
  50% {
    -webkit-transform: translateX(-50%) translateY(10px);
            transform: translateX(-50%) translateY(10px);
  }
}
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(10px);
            transform: translateY(10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(10px);
            transform: translateY(10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@-webkit-keyframes shining {
  0% {
    -webkit-box-shadow: 0 0 0 0 var(--gold);
            box-shadow: 0 0 0 0 var(--gold);
  }
  50% {
    -webkit-box-shadow: 0 0 20px 0px var(--bg-primary);
            box-shadow: 0 0 20px 0px var(--bg-primary);
  }
  100% {
    -webkit-box-shadow: 0 0 0 0 var(--gold);
            box-shadow: 0 0 0 0 var(--gold);
  }
}
@keyframes shining {
  0% {
    -webkit-box-shadow: 0 0 0 0 var(--gold);
            box-shadow: 0 0 0 0 var(--gold);
  }
  50% {
    -webkit-box-shadow: 0 0 20px 0px var(--bg-primary);
            box-shadow: 0 0 20px 0px var(--bg-primary);
  }
  100% {
    -webkit-box-shadow: 0 0 0 0 var(--gold);
            box-shadow: 0 0 0 0 var(--gold);
  }
}
/*
  Service Tag
  Scroll Hint
  Buttons
  Basic Link
  text-center
  block-links
*/
.service-tag {
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.service-tag:hover {
  background: var(--gold);
  color: var(--bg-primary);
}
.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  -webkit-animation: bounce 2s ease-in-out infinite;
          animation: bounce 2s ease-in-out infinite;
}
.scroll-hint svg {
  width: 24px;
  height: 24px;
}
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--logo-bg);
  color: var(--logo-text);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border: 2px solid var(--logo-bg);
  text-align: center;
  cursor: pointer;
}
.btn:hover {
  text-decoration: none;
  background: transparent;
  color: var(--text-primary);
}
.btn.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--logo-bg);
}
.btn.btn-outline:hover {
  background: var(--logo-bg);
  color: var(--logo-text);
}
.btn.btn-gold {
  background: var(--gold);
  color: var(--logo-bg);
  border-color: var(--gold);
}
.btn.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--logo-bg);
}
.btn.btn-gold:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn--radius {
  border-radius: 8px;
}
.btn__group {
  margin-top: 3rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
@media (max-width: 768px) {
  .btn__group {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}
.btn.btn-dark {
  padding: 1.2rem 2rem;
  background: var(--logo-bg);
  color: var(--logo-text);
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.1em;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-align: center;
}
.btn.btn-dark:hover {
  background: var(--gold);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 4px 15px rgba(196, 163, 90, 0.3);
          box-shadow: 0 4px 15px rgba(196, 163, 90, 0.3);
}
.btn.btn-dark:active {
  -webkit-transform: translateY(0);
          transform: translateY(0);
}
.btn.btn--full {
  width: 100%;
}
.btn.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}
.btn.btn-secondary:hover {
  background: var(--bg-primary);
  border-color: var(--gold);
}
.btn .btn-spinner {
  width: 18px;
  height: 18px;
  -webkit-animation: spin 1s linear infinite;
          animation: spin 1s linear infinite;
}
.btn .btn-spinner.hidden {
  display: none;
}
.btn[aria-busy='true'] .btn-spinner {
  display: inline-block;
}
.btn.btn-shining {
  -webkit-animation: shining 2s ease-in-out infinite both;
          animation: shining 2s ease-in-out infinite both;
}
.btn.btn-resend {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--gold);
  cursor: pointer;
  font-weight: 500;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  white-space: nowrap;
  padding: 0.8rem 1rem;
}
.btn.btn-resend:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(196, 163, 90, 0.1);
}
.btn.btn-resend:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-text {
  display: inline;
}
a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
a:has(.link-underline):hover {
  text-decoration: none;
}
.link-underline {
  position: relative;
  padding: 0 10px 4px;
}
.link-underline:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
  -webkit-transform-origin: left;
          transform-origin: left;
  background-color: currentColor;
  -webkit-transition: -webkit-transform 0.3s ease-out;
  transition: -webkit-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
}
.link-underline:hover::before {
  -webkit-transform: scaleX(0);
          transform: scaleX(0);
  -webkit-transform-origin: right;
          transform-origin: right;
}
.text-center {
  text-align: center;
}
.block-links {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}
/*
  photo-slider
  Lightbox Module
*/
.photo-slider {
  overflow: hidden;
}
.photo-slider__list {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.photo-slider__item img {
  display: inline-block;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center;
  height: 200px;
}
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: none;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  opacity: 1;
}
.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}
[data-theme="light"] .lightbox-overlay {
  background: rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .lightbox-overlay {
  background: rgba(0, 0, 0, 0.7);
}
.lightbox-container {
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
  border-radius: 8px;
  -webkit-box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
          box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  min-width: 30%;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-animation: lightbox-slide-in 0.3s ease;
          animation: lightbox-slide-in 0.3s ease;
}
@media (max-width: 768px) {
  .lightbox-container {
    min-width: 50%;
    max-width: 90%;
    border-radius: 4px;
  }
}
@media (max-width: 480px) {
  .lightbox-container {
    width: 80%;
  }
}
@-webkit-keyframes lightbox-slide-in {
  from {
    -webkit-transform: scale(0.8) translateY(-30px);
            transform: scale(0.8) translateY(-30px);
    opacity: 0;
  }
  to {
    -webkit-transform: scale(1) translateY(0);
            transform: scale(1) translateY(0);
    opacity: 1;
  }
}
@keyframes lightbox-slide-in {
  from {
    -webkit-transform: scale(0.8) translateY(-30px);
            transform: scale(0.8) translateY(-30px);
    opacity: 0;
  }
  to {
    -webkit-transform: scale(1) translateY(0);
            transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.lightbox-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}
.lightbox-title {
  margin: 0;
  font-family: 'Noto Serif TC', serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 0 1rem;
}
.lightbox-close {
  background: none;
  border: none;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: var(--text-secondary);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border-radius: 4px;
  padding-top: 0.4rem;
}
.lightbox-close:hover {
  color: var(--gold);
  background: var(--bg-secondary);
}
.lightbox-close svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}
.lightbox-body {
  padding: 1.5rem 2rem;
  color: var(--text-primary);
}
@media (max-width: 768px) {
  .lightbox-body {
    padding: 1.5rem 2rem;
  }
}
.lightbox-body p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.lightbox-body p:last-child {
  margin-bottom: 0;
}
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-transition: background 0.3s ease, color 0.3s ease;
  transition: background 0.3s ease, color 0.3s ease;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(196, 163, 90, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(40, 64, 83, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 2rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  z-index: 100;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
.header.scrolled {
  background: var(--bg-primary);
  backdrop-filter: blur(10px);
  -webkit-box-shadow: 0 2px 20px var(--shadow);
          box-shadow: 0 2px 20px var(--shadow);
}
@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }
}
.header .logo {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.1em;
}
.header .logo span {
  color: var(--gold);
}
.header .logo:hover {
  text-decoration: none;
}
@media (max-width: 768px) {
  .header .logo {
    font-size: 1.2rem;
  }
}
.header-left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .header-left {
    gap: 1rem;
  }
}
.header-right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
}
.header .menu__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
@media (max-width: 768px) {
  .header .menu__list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    background: var(--bg-primary);
    -webkit-box-shadow: -4px 0 20px var(--shadow);
            box-shadow: -4px 0 20px var(--shadow);
    padding: 6rem 2rem 2rem;
    gap: 0;
    -webkit-transition: right 0.4s ease;
    transition: right 0.4s ease;
    overflow-y: auto;
  }
  .header .menu__list.active {
    right: 0;
  }
}
.header .menu__item {
  position: relative;
}
@media (max-width: 768px) {
  .header .menu__item {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  .header .menu__item:last-child {
    border-bottom: none;
  }
}
.header .menu__item:hover .submenu__list {
  visibility: visible;
  opacity: 1;
}
.header .menu__link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}
.header .menu__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  -webkit-transition: width 0.3s ease;
  transition: width 0.3s ease;
}
.header .menu__link:hover {
  color: var(--gold);
}
.header .menu__link:hover::after {
  width: 100%;
}
@media (max-width: 768px) {
  .header .menu__link {
    display: block;
    padding: 1.2rem 0;
    font-size: 1rem;
  }
  .header .menu__link::after {
    display: none;
  }
  .header .menu__link:hover {
    padding-left: 0.5rem;
  }
}
.header .submenu__list {
  visibility: hidden;
  opacity: 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  list-style: none;
  position: absolute;
  right: -1em;
  padding: 1em;
  background-color: var(--bg-primary);
  -webkit-box-shadow: 0 15px 20px rgba(26, 26, 26, 0.03);
          box-shadow: 0 15px 20px rgba(26, 26, 26, 0.03);
}
@media (max-width: 768px) {
  .header .submenu__list {
    visibility: visible;
    opacity: 1;
    position: relative;
    padding: 0;
  }
}
.header .submenu__item {
  white-space: nowrap;
  margin-bottom: 0.5em;
}
.header .submenu__link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}
.header .submenu__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  -webkit-transition: width 0.3s ease;
  transition: width 0.3s ease;
}
.header .submenu__link:hover {
  color: var(--gold);
}
.header .submenu__link:hover::after {
  width: 100%;
}
@media (max-width: 768px) {
  .header .submenu__link {
    display: block;
    font-size: 1rem;
  }
  .header .submenu__link::after {
    display: none;
  }
  .header .submenu__link:hover {
    padding-left: 0.5rem;
  }
}
.header .hamburger {
  display: none;
  width: 22px;
  height: 5px;
  background-color: transparent;
  border-top: 1.5px solid var(--text-primary);
  position: relative;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
@media (max-width: 768px) {
  .header .hamburger {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
}
.header .hamburger::before,
.header .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 5px;
  background-color: transparent;
  border-top: 1.5px solid var(--text-primary);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.header .hamburger::before {
  top: -9px;
}
.header .hamburger::after {
  top: 6px;
}
.header .hamburger[aria-expanded="true"] {
  border-top-color: transparent;
  position: absolute;
  z-index: 10;
  right: 1rem;
}
.header .hamburger[aria-expanded="true"]:before {
  top: 0;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}
.header .hamburger[aria-expanded="true"]:after {
  top: 0;
  left: 3px;
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.4rem;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.3rem;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.theme-toggle:hover {
  border-color: var(--gold);
}
.theme-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  color: var(--text-muted);
}
.theme-btn.active {
  background: var(--gold);
  color: #fff;
}
.theme-btn svg {
  width: 18px;
  height: 18px;
}
footer {
  background: var(--logo-bg);
  color: rgba(255, 242, 226, 0.6);
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.85rem;
}
.inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}
@media (max-width: 768px) {
  .inner {
    padding: 6rem 1rem 2rem;
  }
}
.inner--py0 {
  padding-top: 0;
  padding-bottom: 0;
}
.inner--wx-800 {
  max-width: 800px;
}
.inner--wx-540 {
  max-width: 540px;
}
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  section {
    padding: 4rem 1.5rem;
  }
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
}
.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 1.5rem auto 0;
}
.article-section {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 3rem;
  margin-bottom: 2rem;
  -webkit-box-shadow: 0 4px 20px var(--shadow);
          box-shadow: 0 4px 20px var(--shadow);
}
@media (max-width: 480px) {
  .article-section {
    padding: 2rem;
  }
}
.fade-in {
  opacity: 0;
  -webkit-transform: translateY(30px);
          transform: translateY(30px);
  -webkit-transition: all 0.8s ease;
  transition: all 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}
.hidden {
  display: none;
}
.form-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  -webkit-box-shadow: 0 4px 20px var(--shadow);
          box-shadow: 0 4px 20px var(--shadow);
}
.form-card h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-light);
}
.form-card:has(.form-subtitle) h2 {
  font-size: 1.6rem;
  margin-bottom: 0;
  border-bottom: none;
  color: var(--text-primary);
}
.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-align: left;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--text-primary);
  -webkit-transition: border-color 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: border-color 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  -webkit-box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.15);
          box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.15);
}
.form-group input[type="text"]:disabled,
.form-group input[type="email"]:disabled,
.form-group input[type="tel"]:disabled,
.form-group input[type="date"]:disabled,
.form-group input[type="password"]:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-group input[type="text"].is-readonly,
.form-group input[type="email"].is-readonly,
.form-group input[type="tel"].is-readonly,
.form-group input[type="date"].is-readonly,
.form-group input[type="password"].is-readonly,
.form-group select.is-readonly,
.form-group textarea.is-readonly {
  cursor: not-allowed;
}
.form-group input[type="text"].error,
.form-group input[type="email"].error,
.form-group input[type="tel"].error,
.form-group input[type="date"].error,
.form-group input[type="password"].error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--red);
  -webkit-box-shadow: 0 0 0 3px rgba(139, 35, 35, 0.1);
          box-shadow: 0 0 0 3px rgba(139, 35, 35, 0.1);
}
.form-group input[type="text"].success,
.form-group input[type="email"].success,
.form-group input[type="tel"].success,
.form-group input[type="date"].success,
.form-group input[type="password"].success,
.form-group select.success,
.form-group textarea.success {
  border-color: var(--green);
}
.form-group input[type="text"]::-webkit-input-placeholder, .form-group input[type="email"]::-webkit-input-placeholder, .form-group input[type="tel"]::-webkit-input-placeholder, .form-group input[type="date"]::-webkit-input-placeholder, .form-group input[type="password"]::-webkit-input-placeholder, .form-group select::-webkit-input-placeholder, .form-group textarea::-webkit-input-placeholder {
  color: var(--text-muted);
}
.form-group input[type="text"]::-moz-placeholder, .form-group input[type="email"]::-moz-placeholder, .form-group input[type="tel"]::-moz-placeholder, .form-group input[type="date"]::-moz-placeholder, .form-group input[type="password"]::-moz-placeholder, .form-group select::-moz-placeholder, .form-group textarea::-moz-placeholder {
  color: var(--text-muted);
}
.form-group input[type="text"]:-ms-input-placeholder, .form-group input[type="email"]:-ms-input-placeholder, .form-group input[type="tel"]:-ms-input-placeholder, .form-group input[type="date"]:-ms-input-placeholder, .form-group input[type="password"]:-ms-input-placeholder, .form-group select:-ms-input-placeholder, .form-group textarea:-ms-input-placeholder {
  color: var(--text-muted);
}
.form-group input[type="text"]::-ms-input-placeholder, .form-group input[type="email"]::-ms-input-placeholder, .form-group input[type="tel"]::-ms-input-placeholder, .form-group input[type="date"]::-ms-input-placeholder, .form-group input[type="password"]::-ms-input-placeholder, .form-group select::-ms-input-placeholder, .form-group textarea::-ms-input-placeholder {
  color: var(--text-muted);
}
.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group input[type="date"]::placeholder,
.form-group input[type="password"]::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group select {
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-group .input-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0.8rem;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}
@media (max-width: 480px) {
  .form-group .input-group {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}
@media (max-width: 480px) {
  .form-group .input-group {
    gap: 0.5rem;
  }
  .form-group .input-group input {
    font-size: 1rem;
  }
}
.form-group .input-bundle {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  width: 100%;
}
@media (max-width: 480px) {
  .form-group .input-bundle {
    -webkit-box-flex: 1;
        -ms-flex: auto;
            flex: auto;
  }
}
.required {
  color: var(--red);
  margin-left: 0.2rem;
}
[data-theme="dark"] .required {
  color: #ff6b6b;
}
.form-error {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: -0.3rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.4rem;
  min-height: 1.2rem;
}
.form-error.hidden {
  display: none;
}
.form-error::before {
  content: '⚠';
  font-size: 1rem;
}
.form-message {
  font-size: 0.9rem;
}
.form-message.hidden {
  display: none;
}
.form-message.success {
  color: var(--green);
}
.form-message.error {
  color: var(--red);
}
.form-options {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.8rem;
}
.form-option,
label.form-option {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}
.form-option input[type="radio"],
label.form-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  cursor: pointer;
}
.form-option span,
label.form-option span {
  color: var(--text-primary);
}
.form-group--vemail-readonly,
.form-group--vemail,
.form-group--vcode {
  position: relative;
}
.form-group--vemail-readonly.hidden,
.form-group--vemail.hidden,
.form-group--vcode.hidden {
  display: none;
}
.form-group--vemail-readonly .btn-resend,
.form-group--vemail .btn-resend,
.form-group--vcode .btn-resend {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.form-group--vemail-readonly .btn-resend.disabled,
.form-group--vemail .btn-resend.disabled,
.form-group--vcode .btn-resend.disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}
.form-group--vemail-readonly .btn-resend.verified,
.form-group--vemail .btn-resend.verified,
.form-group--vcode .btn-resend.verified {
  background-color: #28a745;
  border-color: #28a745;
  color: white;
}
.form-group--vemail-readonly .btn-resend.verified:hover,
.form-group--vemail .btn-resend.verified:hover,
.form-group--vcode .btn-resend.verified:hover {
  background-color: #28a745;
  border-color: #28a745;
}
.payment-options {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.payment-options .payment-option {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 150px;
}
.payment-options .payment-option input[type="radio"] {
  display: none;
}
.payment-options .payment-option input[type="radio"]:checked + label {
  border-color: var(--gold);
  background: rgba(196, 163, 90, 0.1);
  color: var(--gold);
}
.payment-options .payment-option label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  font-weight: 500;
}
.payment-options .payment-option label:hover {
  border-color: var(--gold-light);
}
.bank-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
  display: none;
}
.bank-info.show {
  display: block;
  -webkit-animation: fadeIn 0.3s ease;
          animation: fadeIn 0.3s ease;
}
.bank-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.bank-info strong {
  color: var(--text-primary);
}
.bank-details {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-family: monospace;
  font-size: 0.95rem;
}
.bank-details div {
  padding: 0.3rem 0;
}
.company-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
  display: none;
}
.company-info.show {
  display: block;
  -webkit-animation: fadeIn 0.3s ease;
          animation: fadeIn 0.3s ease;
}
.consent-box {
  background: var(--notice-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.consent-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.consent-options {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 2rem;
}
.consent-option {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.consent-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}
.consent-option span {
  color: var(--text-primary);
  font-weight: 500;
}
.password-wrapper {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.password-wrapper input[type='password'] {
  padding-right: 2.8rem;
}
.password-wrapper .toggle-password {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}
.password-wrapper .toggle-password:hover {
  color: var(--text-primary);
}
.password-wrapper .toggle-password.active {
  color: var(--gold);
}
.password-wrapper .toggle-password svg {
  width: 20px;
  height: 20px;
}
.form-checkbox {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 0.6rem;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.form-checkbox input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--gold);
}
.form-checkbox label {
  cursor: pointer;
  margin: 0;
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--text-secondary);
}
.article-content,
.note-editable,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item {
  color: var(--text-primary);
}
.article-content h1,
.note-editable h1,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item h1 {
  font-family: 'Noto Serif TC', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.article-content h2,
.note-editable h2,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-light);
}
.article-content h3,
.note-editable h3,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item h3 {
  font-size: 1.17em;
  line-height: 1.8;
}
.article-content p,
.note-editable p,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item p {
  font-size: 1rem;
  line-height: 1.8;
  margin: 1.3em 0;
}
.article-content a,
.note-editable a,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item a {
  color: var(--gold);
}
.article-content ul,
.note-editable ul,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item ul {
  list-style: none;
  margin-bottom: 1.5rem;
  padding: 0;
}
.article-content ul li,
.note-editable ul li,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}
.article-content ul li::before,
.note-editable ul li::before,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.article-content ol,
.note-editable ol,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item ol {
  padding: 0;
  margin: 0;
}
.article-content ol li,
.note-editable ol li,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item ol li {
  margin-left: 1rem;
  padding: 0.5rem 0 0.5rem 0.5rem;
  color: var(--text-secondary);
}
.article-content ol li::marker,
.note-editable ol li::marker,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item ol li::marker {
  color: var(--gold);
  font-weight: 400;
}
.article-content blockquote,
.note-editable blockquote,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item blockquote,
.article-content pre,
.note-editable pre,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item pre {
  background: var(--bg-secondary);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  border-left: 4px solid var(--gold);
  font-size: inherit;
  margin: 1rem 0;
}
.article-content blockquote strong,
.note-editable blockquote strong,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item blockquote strong,
.article-content pre strong,
.note-editable pre strong,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item pre strong {
  color: var(--text-primary);
}
.article-content table,
.note-editable table,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  max-width: 100%;
  width: 100%;
  margin: 1em 0;
  color: var(--text-primary);
}
.article-content table tbody,
.note-editable table tbody,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item table tbody {
  display: table;
  width: 100%;
}
.article-content table td,
.note-editable table td,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item table td {
  border: 1px solid #888;
  border: 1px solid var(--gold);
  padding: 0.5em;
}
.article-content table td p,
.note-editable table td p,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item table td p {
  margin: 0;
}
.article-content table tr:first-child,
.note-editable table tr:first-child,
.note-editor .note-toolbar .note-style .dropdown-style .dropdown-item table tr:first-child {
  background-color: var(--bg-secondary);
}
.article-content--dark {
  color: var(--text-on-dark);
}
.article-content--dark ul li {
  color: rgba(255, 242, 226, 0.8);
}
.article-content--dark ol li {
  color: rgba(255, 242, 226, 0.8);
}
.article-content--dark h1 {
  color: var(--text-on-dark);
}
.article-content--dark h2 {
  color: var(--gold);
}
.article-content--dark a {
  color: var(--gold);
}
.article-content--dark ol li {
  color: rgba(255, 242, 226, 0.8);
}
.article-content--dark ol li::marker {
  color: var(--gold);
}
.article-content--dark blockquote,
.article-content--dark pre {
  background: var(--bg-secondary);
  border-left: 4px solid var(--gold);
  color: var(--text-primary);
}
.article-content--dark blockquote strong,
.article-content--dark pre strong {
  color: var(--text-primary);
}
.article-content--dark table {
  color: var(--text-on-dark);
}
.article-content--dark table td {
  border: 1px solid #888;
  border: 1px solid var(--gold);
}
.article-content--dark table tr:first-child {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}
.index {
  /* Course Tabs */
  /* Course Content */
}
.index .hero {
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
}
.index .orbit-system {
  position: absolute;
  width: 600px;
  height: 600px;
  pointer-events: none;
}
.index .orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--orbit-color);
  border-radius: 50%;
  opacity: 0.25;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  -webkit-transition: border-color 0.3s ease;
  transition: border-color 0.3s ease;
}
.index .orbit-1 {
  width: 180px;
  height: 180px;
}
.index .orbit-2 {
  width: 240px;
  height: 240px;
}
.index .orbit-3 {
  width: 300px;
  height: 300px;
}
.index .orbit-4 {
  width: 360px;
  height: 360px;
}
.index .orbit-5 {
  width: 420px;
  height: 420px;
}
.index .orbit-6 {
  width: 480px;
  height: 480px;
}
.index .orbit-7 {
  width: 540px;
  height: 540px;
}
.index .orbit-8 {
  width: 600px;
  height: 600px;
}
.index .orbit-9 {
  width: 660px;
  height: 660px;
}
.index .planet-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}
.index .planet-orbit {
  position: absolute;
  -webkit-transform-origin: center center;
          transform-origin: center center;
  -webkit-animation: orbit-rotate linear infinite;
          animation: orbit-rotate linear infinite;
}
.index .planet-orbit-1 {
  width: 180px;
  height: 180px;
  margin: -90px;
  -webkit-animation-duration: 12s;
          animation-duration: 12s;
}
.index .planet-orbit-2 {
  width: 240px;
  height: 240px;
  margin: -120px;
  -webkit-animation-duration: 18s;
          animation-duration: 18s;
}
.index .planet-orbit-3 {
  width: 300px;
  height: 300px;
  margin: -150px;
  -webkit-animation-duration: 24s;
          animation-duration: 24s;
}
.index .planet-orbit-4 {
  width: 360px;
  height: 360px;
  margin: -180px;
  -webkit-animation-duration: 32s;
          animation-duration: 32s;
}
.index .planet-orbit-5 {
  width: 420px;
  height: 420px;
  margin: -210px;
  -webkit-animation-duration: 40s;
          animation-duration: 40s;
}
.index .planet-orbit-6 {
  width: 480px;
  height: 480px;
  margin: -240px;
  -webkit-animation-duration: 50s;
          animation-duration: 50s;
}
.index .planet-orbit-7 {
  width: 540px;
  height: 540px;
  margin: -270px;
  -webkit-animation-duration: 62s;
          animation-duration: 62s;
}
.index .planet-orbit-8 {
  width: 600px;
  height: 600px;
  margin: -300px;
  -webkit-animation-duration: 76s;
          animation-duration: 76s;
}
.index .planet-orbit-9 {
  width: 660px;
  height: 660px;
  margin: -330px;
  -webkit-animation-duration: 90s;
          animation-duration: 90s;
}
@-webkit-keyframes orbit-rotate {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes orbit-rotate {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .index .orbit-system {
    width: 350px;
    height: 350px;
  }
  .index .orbit-1 {
    width: 100px;
    height: 100px;
  }
  .index .orbit-2 {
    width: 130px;
    height: 130px;
  }
  .index .orbit-3 {
    width: 160px;
    height: 160px;
  }
  .index .orbit-4 {
    width: 190px;
    height: 190px;
  }
  .index .orbit-5 {
    width: 220px;
    height: 220px;
  }
  .index .orbit-6 {
    width: 250px;
    height: 250px;
  }
  .index .orbit-7 {
    width: 280px;
    height: 280px;
  }
  .index .orbit-8 {
    width: 310px;
    height: 310px;
  }
  .index .orbit-9 {
    width: 340px;
    height: 340px;
  }
  .index .planet-orbit-1 {
    width: 100px;
    height: 100px;
    margin: -50px;
  }
  .index .planet-orbit-2 {
    width: 130px;
    height: 130px;
    margin: -65px;
  }
  .index .planet-orbit-3 {
    width: 160px;
    height: 160px;
    margin: -80px;
  }
  .index .planet-orbit-4 {
    width: 190px;
    height: 190px;
    margin: -95px;
  }
  .index .planet-orbit-5 {
    width: 220px;
    height: 220px;
    margin: -110px;
  }
  .index .planet-orbit-6 {
    width: 250px;
    height: 250px;
    margin: -125px;
  }
  .index .planet-orbit-7 {
    width: 280px;
    height: 280px;
    margin: -140px;
  }
  .index .planet-orbit-8 {
    width: 310px;
    height: 310px;
    margin: -155px;
  }
  .index .planet-orbit-9 {
    width: 340px;
    height: 340px;
    margin: -170px;
  }
}
.index .planet {
  position: absolute;
  top: 0;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
          transform: translateX(-50%) translateY(-50%);
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.7;
}
.index .planet-1 {
  width: 6px;
  height: 6px;
}
.index .planet-2 {
  width: 8px;
  height: 8px;
}
.index .planet-3 {
  width: 10px;
  height: 10px;
}
.index .planet-4 {
  width: 7px;
  height: 7px;
}
.index .planet-5 {
  width: 14px;
  height: 14px;
}
.index .planet-6 {
  width: 12px;
  height: 12px;
}
.index .planet-7 {
  width: 9px;
  height: 9px;
}
.index .planet-8 {
  width: 9px;
  height: 9px;
}
.index .planet-9 {
  width: 5px;
  height: 5px;
}
.index .hero-content {
  position: relative;
  z-index: 1;
}
.index .hero-tagline {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.index .hero h1 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--logo-bg) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.index .hero-subtitle {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 400;
}
.index .hero-services {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 3rem;
}
.index .about {
  background: var(--bg-secondary);
  max-width: none;
  padding: 8rem 2rem;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}
.index .about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.index .about-quote {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.8rem;
  line-height: 2;
  color: var(--text-primary);
  margin-bottom: 2rem;
  position: relative;
}
@media (max-width: 768px) {
  .index .about-quote {
    font-size: 1.4rem;
  }
}
.index .about-quote::before,
.index .about-quote::after {
  content: '\"';
  font-size: 4rem;
  color: var(--gold-light);
  position: absolute;
  font-family: Georgia, serif;
}
@media (max-width: 768px) {
  .index .about-quote::before,
  .index .about-quote::after {
    font-size: 2.5rem;
  }
}
.index .about-quote::before {
  top: -1.5rem;
  left: -1rem;
}
.index .about-quote::after {
  content: '\"';
  bottom: -3rem;
  right: -1rem;
}
.index .about-text {
  color: var(--text-secondary);
  line-height: 2;
  margin-top: 3rem;
}
.index .services-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.index .service-card {
  background: var(--bg-card);
  padding: 3rem 2rem;
  border-radius: 4px;
  -webkit-box-shadow: 0 4px 30px var(--shadow);
          box-shadow: 0 4px 30px var(--shadow);
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.index .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: -webkit-gradient(linear, left top, right top, from(var(--gold)), to(var(--logo-bg)));
  background: linear-gradient(90deg, var(--gold), var(--logo-bg));
  -webkit-transform: scaleX(0);
          transform: scaleX(0);
  -webkit-transform-origin: left;
          transform-origin: left;
  -webkit-transition: -webkit-transform 0.4s ease;
  transition: -webkit-transform 0.4s ease;
  transition: transform 0.4s ease;
  transition: transform 0.4s ease, -webkit-transform 0.4s ease;
}
.index .service-card:hover {
  -webkit-transform: translateY(-8px);
          transform: translateY(-8px);
  -webkit-box-shadow: 0 12px 40px var(--shadow-hover);
          box-shadow: 0 12px 40px var(--shadow-hover);
}
.index .service-card:hover::before {
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
}
.index .service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  color: var(--gold);
}
.index .service-card h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.index .service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.index .service-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.index .service-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}
.index .service-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.index .service-discount {
  background: linear-gradient(135deg, rgba(196, 163, 90, 0.1) 0%, rgba(196, 163, 90, 0.05) 100%);
  border: 1px solid var(--gold-light);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
}
.index .discount-tag {
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-weight: 600;
}
.index .discount-price {
  font-weight: 700;
  color: var(--red);
  font-size: 1.1rem;
}
.index .discount-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 100%;
}
.index .service-rules {
  list-style: none;
  margin-bottom: 1.5rem;
  padding: 0;
}
.index .service-rules li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}
.index .service-rules li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.index .service-cta {
  text-align: center;
}
.index .notice {
  background: var(--notice-bg);
  max-width: none;
  padding: 4rem 2rem;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}
.index .notice-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.index .notice-content h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
}
.index .notice-content > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.index .notice-items {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 1rem;
}
.index .notice-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: 4px;
}
.index .courses {
  background: var(--bg-dark-section);
  color: var(--text-on-dark);
  max-width: none;
  padding: 8rem 2rem;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}
.index .courses .section-header h2 {
  color: var(--text-on-dark);
}
.index .courses .section-header h2::after {
  background: var(--gold);
}
.index .courses .section-header p {
  color: rgba(255, 242, 226, 0.7);
}
.index .course-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.index .course-tab {
  padding: 0.8rem 2rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: rgba(255, 242, 226, 0.7);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  font-family: inherit;
}
.index .course-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.index .course-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--logo-bg);
}
.index .course-content {
  display: none;
  -webkit-animation: fadeIn 0.4s ease;
          animation: fadeIn 0.4s ease;
}
.index .course-content.active {
  display: block;
}
.index .courses-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -ms-flex-line-pack: stretch;
      align-content: stretch;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.index .course-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  width: 45%;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
@media (max-width: 768px) {
  .index .course-card {
    width: 100%;
  }
}
.index .course-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
}
.index .course-card__title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.index .course-features {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.index .course-feature {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.8rem;
}
.index .course-feature svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.index .course-feature span {
  font-size: 0.9rem;
  color: rgba(255, 242, 226, 0.8);
}
.index .course-cta {
  padding-top: 1.5rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
}
.index .btn-interested {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}
@media (max-width: 768px) {
  .index .btn-interested {
    bottom: 2.5rem;
  }
}
.index .process-steps {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}
.index .process-step {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 200px;
  text-align: center;
  position: relative;
}
.index .process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -1.5rem;
  top: 2rem;
  color: var(--gold);
  font-size: 1.5rem;
}
@media (max-width: 768px) {
  .index .process-step:not(:last-child)::after {
    display: none;
  }
}
.index .step-number {
  width: 50px;
  height: 50px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-family: 'Noto Serif TC', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.index .process-step h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.index .process-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.index .contact {
  text-align: center;
}
.index .contact-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.index .contact-link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text-primary);
  padding: 1rem 2rem;
  border: 1px solid var(--border-color);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.index .contact-link:hover {
  border-color: var(--gold);
  background: var(--bg-secondary);
  text-decoration: none;
}
.index .contact-link svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}
[data-theme="dark"] .index .service-price {
  color: var(--gold);
}
[data-theme="dark"] .index .discount-price {
  color: var(--gold);
}
[data-theme="dark"] .index .hero h1 {
  background: linear-gradient(135deg, var(--logo-text) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.course {
  /* Course Info Card */
}
.course .course-header {
  text-align: center;
  margin-bottom: 3rem;
}
.course .course-header h1 {
  font-family: 'Noto Serif TC', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.course .course-header .course-date {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.course .course-header .course-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.5rem;
}
[data-theme="dark"] .course .course-header .course-price {
  color: var(--gold);
}
.course .course-header .course-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}
.course .course-info {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  -webkit-box-shadow: 0 4px 20px var(--shadow);
          box-shadow: 0 4px 20px var(--shadow);
}
.course .closed-box {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  -webkit-box-shadow: 0 4px 30px var(--shadow);
          box-shadow: 0 4px 30px var(--shadow);
  border: 2px solid var(--border-color);
}
.course .closed-box h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.course .closed-box p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.course .closed-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin: 0 auto 1.5rem;
}
.course .closed-icon svg {
  width: 40px;
  height: 40px;
  color: var(--gold);
}
.course .teacher-section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 2rem;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  margin-bottom: 2rem;
}
.course .teacher-content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.course .teacher-image {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 300px;
          flex: 0 0 300px;
}
.course .teacher-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.course .warning-box {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}
.course .warning-box p {
  margin: 0.5rem 0;
}
.course .price-summary {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.course .price-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.course .price-value {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
  font-family: monospace;
}
.course .price-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0.8rem 0;
}
.course .price-row:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}
.course .price-row.discount-row .price-label {
  color: var(--red);
}
.course .price-row.discount-row .discount-amount {
  color: var(--red);
}
.course .price-row.discount-row.hidden {
  display: none;
}
.course .price-row.total-row {
  padding-top: 1rem;
  border-top: 2px solid var(--gold);
}
.course .price-row.total-row .price-label {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 700;
}
.course .price-row.total-row .total-amount {
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
}
@media (max-width: 768px) {
  .course .course-header h1 {
    font-size: 1.8rem;
  }
  .course .course-price {
    font-size: 2rem;
  }
  .course .payment-options {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .course .consent-options {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 1rem;
  }
  .course .teacher-section {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .course .teacher-image {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
    max-width: 100%;
    margin: 0 auto;
  }
  .course .price-label {
    font-size: 0.9rem;
  }
  .course .price-value {
    font-size: 1rem;
  }
  .course .price-row.total-row .price-label {
    font-size: 1rem;
  }
  .course .price-row.total-row .total-amount {
    font-size: 1.3rem;
  }
}
[data-theme="dark"] .warning-box {
  background: #3a3000;
  border-color: #c4a35a;
}
[data-theme="dark"] .warning-box h3 {
  color: var(--gold);
}
.result {
  /* Result Box Common Styles */
  /* Info Card */
}
.result .result-box {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  text-align: center;
  -webkit-box-shadow: 0 4px 30px var(--shadow);
          box-shadow: 0 4px 30px var(--shadow);
  /* Success Styles */
  /* Error Styles */
}
.result .result-box h1 {
  font-family: 'Noto Serif TC', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.result .result-box p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.result .result-box .result-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin: 0 auto 1.5rem;
}
.result .result-box .result-icon svg {
  width: 40px;
  height: 40px;
}
.result .result-box.success {
  border: 2px solid var(--success-border);
}
.result .result-box.success .result-icon {
  background: var(--success-bg);
}
.result .result-box.success .result-icon svg {
  color: var(--green);
}
.result .result-box.success h1 {
  color: var(--green);
}
.result .result-box.success [data-theme="dark"] .result-box.success .result-icon svg {
  color: #81c784;
}
.result .result-box.success [data-theme="dark"] .result-box.success h1 {
  color: #81c784;
}
.result .result-box.error {
  border: 2px solid var(--error-border);
}
.result .result-box.error .result-icon {
  background: var(--error-bg);
}
.result .result-box.error .result-icon svg {
  color: var(--red);
}
.result .result-box.error h1 {
  color: var(--red);
}
.result .result-box.error [data-theme="dark"] .result-box.error .result-icon svg {
  color: #ef5350;
}
.result .result-box.error [data-theme="dark"] .result-box.error h1 {
  color: #ef5350;
}
.result .info-card {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
}
.result .info-card h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
}
.result .info-card h3 svg {
  width: 20px;
  height: 20px;
}
.result .info-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 0.8rem;
  padding: 0.5rem 0;
}
.result .info-item .label {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 70px;
}
.result .info-item .value {
  color: var(--text-secondary);
}
.result .info-item img {
  width: 50%;
}
.result .contact-hint {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.result .contact-hint p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .result .result-box {
    padding: 2rem 1.5rem;
  }
  .result .result-box h1 {
    font-size: 1.6rem;
  }
  .result .info-item img {
    width: 100%;
  }
}
.auth .auth-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 2px solid var(--border-color);
}
.auth .auth-tabs .auth-tab {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: relative;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.auth .auth-tabs .auth-tab:hover {
  color: var(--text-primary);
}
.auth .auth-tabs .auth-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.auth .auth-content {
  display: none;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}
.auth .auth-content.active {
  display: block;
  opacity: 1;
}
.auth .password-strength .strength-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}
.auth .password-strength .strength-bar .strength-fill {
  width: 0%;
  height: 100%;
  background: var(--red);
  -webkit-transition: width 0.3s ease, background-color 0.3s ease;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.auth .password-strength .strength-bar .strength-fill.weak {
  width: 33%;
  background: #ff6b6b;
}
.auth .password-strength .strength-bar .strength-fill.medium {
  width: 66%;
  background: #ffa500;
}
.auth .password-strength .strength-bar .strength-fill.strong {
  width: 100%;
  background: var(--green);
}
.auth .password-strength .strength-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  text-align: left;
}
@media (max-width: 768px) {
  .auth .auth-tabs .auth-tab {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}
.member-profile {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
}
.member-profile .profile-container {
  max-width: 1200px;
  margin: 0 auto;
}
.member-profile h1 {
  font-family: 'Noto Serif TC', serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gold);
}
.member-profile .profile-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}
.member-profile .profile-tabs .profile-tab {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: relative;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  text-align: center;
}
.member-profile .profile-tabs .profile-tab:hover {
  color: var(--text-primary);
}
.member-profile .profile-tabs .profile-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.member-profile #order-history {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 12px;
  -webkit-box-shadow: 0 12px 40px var(--shadow);
          box-shadow: 0 12px 40px var(--shadow);
  border: 1px solid var(--border-color);
}
.member-profile .profile-card {
  display: none;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}
.member-profile .profile-card.active {
  display: block;
  opacity: 1;
}
.member-profile .profile-card h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.member-profile .order-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.member-profile .order-table-wrapper .order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.member-profile .order-table-wrapper .order-table thead {
  background: var(--bg-primary);
  border-bottom: 2px solid var(--border-color);
}
.member-profile .order-table-wrapper .order-table thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.member-profile .order-table-wrapper .order-table tbody tr.order-item {
  border-bottom: 1px solid var(--border-color);
  -webkit-transition: background 0.2s ease;
  transition: background 0.2s ease;
}
.member-profile .order-table-wrapper .order-table tbody tr.order-item:hover {
  background: var(--bg-primary);
}
.member-profile .order-table-wrapper .order-table tbody tr.order-item:last-child {
  border-bottom: none;
}
.member-profile .order-table-wrapper .order-table tbody tr.order-item:nth-child(even) {
  background: rgba(196, 163, 90, 0.05);
}
.member-profile .order-table-wrapper .order-table tbody tr.order-item:nth-child(even):hover {
  background: rgba(196, 163, 90, 0.1);
}
.member-profile .order-table-wrapper .order-table tbody tr.order-item td {
  padding: 1rem;
  color: var(--text-primary);
  vertical-align: middle;
}
.member-profile .order-table-wrapper .order-table tbody tr.order-item td:nth-child(2) {
  white-space: nowrap;
}
.member-profile .order-table-wrapper .order-table tbody tr.order-item td:last-child {
  white-space: nowrap;
}
.member-profile .order-table-wrapper .status-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.05em;
}
.member-profile .order-table-wrapper .status-badge.status-completed {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}
.member-profile .order-table-wrapper .status-badge.status-pending {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}
.member-profile .order-table-wrapper .status-badge.status-processing {
  background: rgba(33, 150, 243, 0.2);
  color: #2196f3;
}
.member-profile .order-table-wrapper .status-badge.status-cancelled {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
}
.member-profile .order-table-wrapper .action-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.member-profile .order-table-wrapper .action-link:hover {
  color: var(--gold-light);
  text-decoration: underline;
}
.member-profile .order-table-wrapper .no-orders {
  text-align: center;
  padding: 3rem 2rem;
}
.member-profile .order-table-wrapper .no-orders p {
  color: var(--text-secondary);
  font-size: 1rem;
}
.member-profile .order-table-wrapper .no-orders.hidden {
  display: none;
}
.member-profile .pagination-wrapper {
  margin-top: 2rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
}
.member-profile .pagination-wrapper .pagination-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
  -webkit-box-ordinal-group: 0;
      -ms-flex-order: -1;
          order: -1;
}
.member-profile .pagination-wrapper .pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.member-profile .pagination-wrapper .pagination .pagination-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  font-weight: 500;
}
.member-profile .pagination-wrapper .pagination .pagination-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(196, 163, 90, 0.05);
}
.member-profile .pagination-wrapper .pagination .pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.member-profile .pagination-wrapper .pagination .pagination-btn svg {
  stroke: currentColor;
}
.member-profile .pagination-wrapper .pagination .pagination-numbers {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0.3rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.member-profile .pagination-wrapper .pagination .pagination-numbers .pagination-num {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
}
.member-profile .pagination-wrapper .pagination .pagination-numbers .pagination-num:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(196, 163, 90, 0.05);
}
.member-profile .pagination-wrapper .pagination .pagination-numbers .pagination-num.active {
  background: var(--gold);
  color: var(--logo-bg);
  border-color: var(--gold);
}
.member-profile .pagination-wrapper .pagination .pagination-numbers .pagination-ellipsis {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0 0.5rem;
  color: var(--text-secondary);
}
@media (max-width: 768px) {
  .member-profile {
    padding: 8rem 1rem 4rem;
  }
  .member-profile h1 {
    font-size: 1.5rem;
  }
  .member-profile .profile-tabs .profile-tab {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  .member-profile #order-history {
    padding: 2rem;
  }
  .member-profile .order-table-wrapper {
    border: none;
    border-radius: 0;
  }
  .member-profile .order-table-wrapper .order-table {
    font-size: 0.9rem;
    display: block;
    border-collapse: separate;
  }
  .member-profile .order-table-wrapper .order-table thead {
    display: none;
  }
  .member-profile .order-table-wrapper .order-table tbody {
    display: block;
  }
  .member-profile .order-table-wrapper .order-table tbody:not(:last-child) .order-item {
    border-bottom: none;
  }
  .member-profile .order-table-wrapper .order-table tbody tr.order-item {
    display: block;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
  }
  .member-profile .order-table-wrapper .order-table tbody tr.order-item:nth-child(even) {
    background: rgba(196, 163, 90, 0.05);
  }
  .member-profile .order-table-wrapper .order-table tbody tr.order-item:nth-child(even) td {
    background: rgba(196, 163, 90, 0.05);
  }
  .member-profile .order-table-wrapper .order-table tbody tr.order-item:nth-child(even) td:before {
    background: rgba(196, 163, 90, 0.05);
  }
  .member-profile .order-table-wrapper .order-table tbody tr.order-item:nth-child(odd) {
    background: var(--bg-card);
  }
  .member-profile .order-table-wrapper .order-table tbody tr.order-item:nth-child(odd) td {
    background: var(--bg-card);
  }
  .member-profile .order-table-wrapper .order-table tbody tr.order-item:nth-child(odd) td:before {
    background: var(--bg-card);
  }
  .member-profile .order-table-wrapper .order-table tbody tr.order-item td {
    padding: 0.75rem 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 44px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    word-break: break-word;
    overflow-wrap: break-word;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: calc(45% + 1rem);
  }
  .member-profile .order-table-wrapper .order-table tbody tr.order-item td:before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    top: 0;
    height: 100%;
    width: 40%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    border-right: 1px solid var(--border-color);
  }
  .member-profile .order-table-wrapper .order-table tbody tr.order-item td:last-child {
    border-bottom: none;
  }
  .member-profile .order-table-wrapper .order-table tbody tr.order-item td .status-badge {
    margin: 0;
  }
  .member-profile .pagination-wrapper {
    margin-top: 1.5rem;
  }
  .member-profile .pagination-wrapper .pagination {
    gap: 0.3rem;
  }
  .member-profile .pagination-wrapper .pagination .pagination-btn {
    width: 32px;
    height: 32px;
  }
  .member-profile .pagination-wrapper .pagination .pagination-btn svg {
    width: 16px;
    height: 16px;
  }
  .member-profile .pagination-wrapper .pagination .pagination-numbers {
    gap: 0.2rem;
  }
  .member-profile .pagination-wrapper .pagination .pagination-numbers .pagination-num {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  .member-profile .pagination-wrapper .pagination-info {
    font-size: 0.8rem;
  }
}
.member-resetpwd .password-strength {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.4rem;
}
.member-resetpwd .password-strength .strength-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}
.member-resetpwd .password-strength .strength-bar .strength-fill {
  height: 100%;
  width: 0;
  -webkit-transition: width 0.3s ease, background-color 0.3s ease;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 3px;
}
.member-resetpwd .password-strength .strength-bar .strength-fill.weak {
  width: 33%;
  background: #ff6b6b;
}
.member-resetpwd .password-strength .strength-bar .strength-fill.medium {
  width: 66%;
  background: #ffa500;
}
.member-resetpwd .password-strength .strength-bar .strength-fill.strong {
  width: 100%;
  background: var(--green);
}
.member-resetpwd .password-strength .strength-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: left;
}
