/* ========================================
   COSMIC HOME.CSS - Big5 Compatible
   Four-pointed Star Version
   ======================================== */

:root {
  --bg: #07070c;
  --bg-secondary: #0a0a12;
  --panel: #0f0f18;
  --panel-hover: #14141f;
  --copper: #cd7f32;
  --copper-light: #e8a54b;
  --copper-dark: #a65e1a;
  --orange: #ff8c42;
  --orange-glow: rgba(255, 140, 66, 0.4);
  --ink: #f0f0f5;
  --muted: #6a6a7a;
  --line: #1a1a28;
  --line-light: #252535;
  --glow-copper: 0 0 20px rgba(205, 127, 50, 0.4);
  --glow-orange: 0 0 25px rgba(255, 140, 66, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.7), var(--glow-copper);
  --shadow-banner: 0 20px 50px rgba(0, 0, 0, 0.6);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 50px;
  --font: "Microsoft JhengHei", system-ui, sans-serif;
  --font-fancy: 'Georgia', serif;
  --card-w: 280px;
  --card-gap: 18px;
  --cover-h: 280px;
  --title-lines: 2;
  --star4: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(2px 2px at 10% 20%, #fff 100%, transparent),
    radial-gradient(2px 2px at 30% 65%, #fff 100%, transparent),
    radial-gradient(2px 2px at 50% 10%, #fff 100%, transparent),
    radial-gradient(2px 2px at 70% 80%, #fff 100%, transparent),
    radial-gradient(2px 2px at 90% 30%, #fff 100%, transparent),
    radial-gradient(2px 2px at 15% 90%, #fff 100%, transparent),
    radial-gradient(2px 2px at 85% 55%, #fff 100%, transparent),
    radial-gradient(2px 2px at 45% 45%, #fff 100%, transparent),
    radial-gradient(2px 2px at 25% 35%, #fff 100%, transparent),
    radial-gradient(2px 2px at 65% 25%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 20% 50%, rgba(255,255,255,0.9) 100%, transparent),
    radial-gradient(1.5px 1.5px at 40% 30%, rgba(255,255,255,0.9) 100%, transparent),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(255,255,255,0.9) 100%, transparent),
    radial-gradient(1px 1px at 12% 42%, rgba(255,255,255,0.6) 100%, transparent),
    radial-gradient(1px 1px at 28% 78%, rgba(255,255,255,0.6) 100%, transparent),
    radial-gradient(1px 1px at 52% 58%, rgba(255,255,255,0.5) 100%, transparent);
  pointer-events: none;
  z-index: -2;
  animation: twinkle-bg 8s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 85%, rgba(205, 127, 50, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 15%, rgba(255, 140, 66, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

@keyframes twinkle-bg {
  0% { opacity: 1; }
  100% { opacity: 0.7; }
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.hero-wrap {
  order: 1;
  background: transparent;
  color: #fff;
  border-bottom: 0;
}

.main-header {
  background: linear-gradient(180deg, rgba(15, 15, 24, 0.95) 0%, rgba(10, 10, 18, 0.98) 100%);
  border-bottom: 2px solid var(--copper);
  position: relative;
  backdrop-filter: blur(10px);
}

.main-header::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: var(--copper-light);
  clip-path: var(--star4);
  filter: drop-shadow(0 0 6px var(--copper-light));
}

.main-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 12px;
  column-gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
}
.site-logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  border: 2px solid var(--copper);
  box-shadow: var(--glow-copper);
}
.site-logo span {
  font-family: var(--font-fancy);
  background: linear-gradient(135deg, var(--copper-light) 0%, var(--orange) 50%, var(--copper) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.header-grow { flex: 1 1 auto; }

.icon-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #aaaacc;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.icon-link:hover {
  color: var(--copper-light);
  border-color: var(--copper);
  background: rgba(205, 127, 50, 0.1);
}
.icon-box {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.icon-box svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hamburger {
  display: none;
  background: var(--panel);
  border: 2px solid var(--copper);
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: var(--copper-light);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.hamburger svg { fill: currentColor; }
.hamburger:hover {
  background: rgba(205, 127, 50, 0.2);
  box-shadow: var(--glow-copper);
}

.topbar {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--copper);
  order: 2;
  overflow: visible;
  z-index: 150;
  position: relative;
}

.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  bottom: -9px;
  width: 16px;
  height: 16px;
  background: var(--copper);
  clip-path: var(--star4);
  filter: drop-shadow(0 0 4px var(--copper));
}
.topbar::before { left: 20%; }
.topbar::after { right: 20%; }

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}
.topbar-inner::-webkit-scrollbar { display: none; }

.top-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  flex: 1;
  padding: 10px 16px;
}

/* ?`???h???s */
.nav-btn {
  min-width: 95px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(to right, #8a4513, #c87832, #a35a1f, #8a4513, #c87832, #a35a1f);
  background-size: 250%;
  background-position: left;
  color: #c87832;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition-duration: 1s;
  overflow: hidden;
  text-decoration: none;
  padding: 0 4px;
}

.nav-btn::before {
  position: absolute;
  content: attr(data-text);
  color: #d4935a;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96%;
  height: 86%;
  border-radius: 8px;
  transition-duration: 1s;
  background-color: rgba(15, 15, 24, 0.95);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0 14px;
  white-space: nowrap;
}

.nav-btn:hover {
  background-position: right;
  transition-duration: 1s;
}

.nav-btn:hover::before {
  background-position: right;
  transition-duration: 1s;
}

.nav-btn:active {
  transform: scale(0.95);
}

/* Dropdown */
.dropdown { position: relative; display: inline-block; }

.dropdown .nav-btn::before {
  content: attr(data-text) " \25BE";
}

.dropdown-arrow {
  display: none;
}
.dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: fixed;
  min-width: 200px;
  background: rgba(15, 15, 24, 0.98);
  border: 2px solid #a35a1f;
  border-top: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(163, 90, 31, 0.3);
  border-radius: 0 0 10px 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
  max-height: 400px;
  overflow-y: auto;
  pointer-events: none;
}
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #d4935a;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px dashed rgba(163, 90, 31, 0.4);
  position: relative;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover {
  background: rgba(163, 90, 31, 0.2);
  color: #e8a870;
  padding-left: 28px;
}

.dropdown-menu a::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #c87832;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}
.dropdown-menu a:hover::before { opacity: 1; }

.top-right {
  display: flex;
  align-items: stretch;
  border-left: 1px dashed var(--line-light);
}
.search-box-container {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  position: relative;
}
.search-input {
  border: 2px solid var(--copper);
  border-radius: var(--radius-pill);
  padding: 10px 16px 10px 42px;
  font-size: 14px;
  width: 220px;
  outline: none;
  transition: all 0.3s ease;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus {
  border-color: var(--copper-light);
  box-shadow: var(--glow-copper), inset 0 0 20px rgba(205, 127, 50, 0.1);
}
.search-icon-inner {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.search-icon-inner svg {
  width: 18px;
  height: 18px;
  fill: var(--copper);
}

.drawer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
}
.drawer .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s;
}
.drawer .panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 85vw;
  max-width: 360px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
  border-left: 2px solid var(--copper);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.7), var(--glow-copper);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.drawer.open { pointer-events: auto; }
.drawer.open .overlay { opacity: 1; }
.drawer.open .panel { transform: translateX(0); }
.drawer .panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 16px;
  border-bottom: 2px solid var(--copper);
  background: var(--panel);
}
.drawer .panel-header span {
  display: none;
}

#navMobile {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
#navMobile a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px dashed var(--line-light);
  transition: all 0.3s ease;
  position: relative;
}

#navMobile a::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 12px;
  flex-shrink: 0;
  background: var(--copper);
  clip-path: var(--star4);
  opacity: 0.5;
  transition: all 0.3s ease;
}
#navMobile a:hover {
  background: rgba(205, 127, 50, 0.15);
  border-color: var(--copper);
  color: var(--copper-light);
}
#navMobile a:hover::before {
  opacity: 1;
  background: var(--copper-light);
  filter: drop-shadow(0 0 4px var(--copper-light));
}

.mobile-nav-section {
  padding: 8px 0;
}

.mobile-nav-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 8px;
}

.mobile-nav-icon-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px dashed var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}
.mobile-nav-icon-item:hover {
  background: rgba(205, 127, 50, 0.15);
  border-color: var(--copper);
  color: var(--copper-light);
}

.mobile-nav-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  margin: 12px 0;
}

.mobile-nav-group {
  margin: 4px 0;
}

.mobile-nav-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px dashed var(--line-light);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.mobile-nav-group-title:hover {
  border-color: var(--copper);
  color: var(--copper-light);
}

.mobile-nav-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--copper);
  transition: transform 0.3s ease;
}
.mobile-nav-group.open .mobile-nav-arrow {
  transform: rotate(180deg);
}

.mobile-nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: -1px;
}
.mobile-nav-group.open .mobile-nav-submenu {
  max-height: 500px;
  border: 1px dashed var(--line);
  border-top: none;
}

.mobile-nav-subitem {
  display: block;
  padding: 12px 20px 12px 28px;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
  transition: all 0.3s ease;
  position: relative;
}
.mobile-nav-subitem:last-child {
  border-bottom: none;
}
.mobile-nav-subitem::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--copper);
  clip-path: var(--star4);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-subitem:hover {
  background: rgba(205, 127, 50, 0.1);
  color: var(--copper-light);
  padding-left: 32px;
}
.mobile-nav-subitem:hover::before {
  opacity: 1;
}

.slides {
  position: relative;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow: visible;
  perspective: 1200px;
  background: transparent;
}
.slides::before, .slides::after { display: none; }
.slides .track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 50%;
  gap: 12px;
  padding: 0;
  overflow: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.slides .track::-webkit-scrollbar { display: none; }

.slides .item {
  position: relative;
  height: 100vh;
  max-height: 500px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  transform-origin: center;
  will-change: transform, filter, opacity, box-shadow;
  transition: transform .4s ease, filter .4s ease, opacity .35s ease, box-shadow .4s ease;
  filter: blur(3px) saturate(.9) brightness(.68);
  opacity: .48;
  transform: translateZ(0) scale(.90);
  box-shadow: none;
}
.slides .item.active {
  filter: none;
  opacity: 1;
  transform: translateZ(40px) scale(1.08) rotateY(0deg) rotateZ(0deg) translateY(0) translateX(0);
  z-index: 5;
  box-shadow: none;
}
.slides .item.left {
  transform-origin: right center;
  transform: translateZ(0) scale(.95) rotateY(16deg) rotateZ(-2deg) translateY(6px) translateX(10%);
}
.slides .item.left::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 40%);
}
.slides .item.right {
  transform-origin: left center;
  transform: translateZ(0) scale(.95) rotateY(-16deg) rotateZ(2deg) translateY(6px) translateX(-10%);
}
.slides .item.right::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(270deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 40%);
}
.slides .item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.slides .item::after { display: none; }

.hero-indicator { display: none; }

.slides .dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  border: 1px solid var(--copper);
  backdrop-filter: blur(4px);
}
.slides .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
  opacity: .7;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.slides .dot.active {
  opacity: 1;
  background: var(--copper-light);
  box-shadow: 0 0 8px var(--copper);
}

.slides .ctrl,
.ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 7;
  background: rgba(0,0,0,.45);
  border: 1px solid var(--copper);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--copper-light);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: all 0.3s ease;
}
.slides .ctrl:hover,
.ctrl:hover {
  background: var(--copper);
  color: var(--bg);
  box-shadow: var(--glow-copper);
}
.slides .ctrl svg,
.ctrl svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.slides .ctrl.prev,
.prev { left: 24px; }
.slides .ctrl.next,
.next { right: 24px; }

main.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 16px 60px;
}
.sec { margin-bottom: 48px; }
.footer-space { height: 40px; }

.sec-group { margin-bottom: 50px; }
.sec-group-title {
  font-size: 24px;
  font-weight: 600;
  font-family: var(--font-fancy);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  position: relative;
  letter-spacing: 1px;
}

.sec-group-title::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: var(--copper-light);
  clip-path: var(--star4);
  filter: drop-shadow(0 0 5px var(--copper-light));
}
.sec-group-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper) 0%, transparent 60%);
}

.grid-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0 -8px;
  padding: 8px;
}

.grid {
  display: flex;
  gap: var(--card-gap);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 0;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.grid::-webkit-scrollbar { display: none; }

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 15, 24, 0.9);
  border: 2px solid var(--copper);
  color: var(--copper-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}
.scroll-btn:hover:not(.disabled) {
  background: var(--copper);
  color: var(--bg);
  box-shadow: var(--glow-copper);
}
.scroll-btn.disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.scroll-btn svg { width: 18px; height: 18px; fill: currentColor; }
.scroll-btn-prev { left: 0; }
.scroll-btn-next { right: 0; }

.card {
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  background: var(--panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  scroll-snap-align: start;
  border: 2px solid var(--line);
  position: relative;
  display: block;
}
.card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--copper);
  border-radius: calc(var(--radius-lg) - 3px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--copper);
  box-shadow: var(--shadow-card-hover);
}
.card:hover::before { opacity: 0.6; }

.card .cover {
  position: relative;
  width: 100%;
  height: var(--cover-h);
  overflow: hidden;
  background: var(--bg);
  display: block;
  object-fit: cover;
  transition: all 0.4s ease;
}
.card:hover .cover { transform: scale(1.05); }

.card .badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}
.card .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  color: #fff;
  border: 1px solid var(--copper-light);
  box-shadow: 0 2px 10px rgba(205, 127, 50, 0.4);
}

.card .badge::before {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  background: #fff;
  clip-path: var(--star4);
}
.card .badge.stock {
  background: rgba(7, 7, 12, 0.9);
  border: 1px solid var(--copper);
  color: var(--copper-light);
}
.card .badge.stock::before { display: none; }

.card .body { padding: 16px; }
.card .title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: var(--title-lines);
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.4em * var(--title-lines));
}

.card .price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card .price-icon {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #e8a54b 0%, #cd7f32 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #07070c;
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.4);
  flex-shrink: 0;
}

.card .price-label {
  font-size: 12px;
  color: #6a6a7a;
}

.card .price-now {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Georgia', serif;
  color: #e8a54b;
  background: linear-gradient(135deg, #e8a54b 0%, #ff8c42 50%, #cd7f32 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.card .price-old {
  font-size: 14px;
  color: #6a6a7a;
  text-decoration: line-through;
}

@supports not (-webkit-background-clip: text) {
  .card .price-now {
    background: none;
    -webkit-text-fill-color: #e8a54b;
    color: #e8a54b;
  }
}

.site-footer {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg) 100%);
  border-top: 2px solid var(--copper);
  color: #bbb;
  font-size: 14px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  background: var(--copper-light);
  clip-path: var(--star4);
  filter: drop-shadow(0 0 6px var(--copper-light));
}
.site-footer::after {
  content: "";
  position: absolute;
  top: -10px;
  left: calc(50% - 40px);
  width: 16px;
  height: 16px;
  background: var(--copper);
  clip-path: var(--star4);
  box-shadow: 64px 0 0 0 var(--copper);
  filter: drop-shadow(0 0 3px var(--copper));
}

.footer-main { padding: 50px 16px 30px; }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-title {
  color: var(--copper-light);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-fancy);
  margin: 0 0 18px;
  padding-bottom: 12px;
  position: relative;
  letter-spacing: 1px;
}
.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--copper) 0%, transparent 100%);
}

.footer-text {
  color: #bbb;
  line-height: 1.8;
  margin-bottom: 14px;
}

.footer-bullets {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.footer-bullets li {
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
  color: #bbb;
}

.footer-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--copper);
  clip-path: var(--star4);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 12px; color: #bbb; }
.footer-links a {
  color: #bbb;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover {
  color: var(--copper-light);
  transform: translateX(4px);
}

.footer-line-wrap {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.footer-line-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  background: var(--bg);
  border: 2px dashed var(--copper);
  border-radius: var(--radius);
}
.footer-line-title {
  font-weight: 600;
  color: var(--ink);
}
.footer-line-id {
  font-size: 13px;
  color: #bbb;
}
.line-qr {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  border: 2px solid var(--copper);
}
.line-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(205, 127, 50, 0.4);
  position: relative;
  overflow: hidden;
}
.line-btn::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(255,255,255,0.4);
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.line-btn:hover {
  background: linear-gradient(135deg, var(--orange) 0%, var(--copper) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 140, 66, 0.5);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px dashed var(--copper);
  padding: 20px 16px;
}
.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-warning {
  color: #bbb;
  font-size: 13px;
}
.footer-warning strong {
  color: var(--copper-light);
}
.footer-copy {
  color: #bbb;
  font-size: 13px;
}

@media (max-width: 1400px) {
  :root { --card-w: 260px; }
}
@media (max-width: 1100px) {
  :root { --card-w: 250px; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .icon-nav { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 900px) {
  .slides .track { grid-auto-columns: 60%; }
  .slides .item { max-height: 400px; }
}
@media (max-width: 768px) {
  :root { --card-w: 240px; --cover-h: 240px; }
  .topbar { display: none; }
  .main-header-inner { padding: 12px; }
  .slides .track { grid-auto-columns: 70%; }
  .slides .item { max-height: 320px; }
  .footer-inner { grid-template-columns: 1fr; }
  .scroll-btn { width: 38px; height: 38px; }
}
@media (max-width: 640px) {
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  :root { --card-w: 200px; --cover-h: 200px; }
  .slides .track { grid-auto-columns: 85%; }
  .slides .item { max-height: 260px; }
  main.page { padding: 20px 12px 40px; }
  .sec-group-title { font-size: 20px; }
  .card .price-now { font-size: 18px; }
}

/* ========================================
   NEWS DETAIL PAGE (?峹????)
   ======================================== */
.news-detail {
  max-width: 900px;
  margin: 0 auto;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.news-detail-header {
  padding: 32px 32px 24px;
  border-bottom: 1px dashed var(--line);
}

.news-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(205, 127, 50, 0.15);
  border: 1px dashed var(--copper);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--copper-light);
  font-weight: 600;
  margin-bottom: 16px;
}

.news-detail-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--copper-light);
  clip-path: var(--star4);
}

.news-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin: 0 0 16px;
  font-family: var(--font-fancy);
}

.news-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.news-detail-date {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-detail-date::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--copper);
  clip-path: polygon(10% 0%, 90% 0%, 90% 100%, 10% 100%, 10% 30%, 0% 30%, 0% 0%);
}

.news-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font);
}

.news-share-btn:hover {
  background: linear-gradient(135deg, var(--orange) 0%, var(--copper) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

.news-detail-image {
  width: 100%;
  max-height: 450px;
  overflow: hidden;
  background: var(--bg);
}

.news-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-detail-content {
  padding: 32px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}

.news-detail-content p {
  margin-bottom: 18px;
}

.news-detail-content h2,
.news-detail-content h3 {
  color: var(--copper-light);
  margin: 28px 0 14px;
  font-family: var(--font-fancy);
}

.news-detail-content ul,
.news-detail-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.news-detail-content li {
  margin-bottom: 8px;
}

.news-detail-content a {
  color: var(--copper);
  text-decoration: underline;
}

.news-detail-content a:hover {
  color: var(--copper-light);
}

.news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 16px 0;
}

.news-detail-footer {
  padding: 24px 32px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: flex-start;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg);
  border: 2px solid var(--copper);
  border-radius: var(--radius-pill);
  color: var(--copper-light);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: var(--copper);
  color: var(--bg);
  box-shadow: var(--glow-copper);
}

/* ?T???? */
@media (max-width: 768px) {
  .news-detail-header {
    padding: 24px 20px 20px;
  }
  
  .news-detail-title {
    font-size: 22px;
  }
  
  .news-detail-content {
    padding: 24px 20px;
    font-size: 15px;
  }
  
  .news-detail-footer {
    padding: 20px;
  }
}

/* ========================================
   NEWS TAG COLORS (?????C??)
   ======================================== */
/* ???i - ??? */
.news-tag[data-tag="???i"],
.news-detail-tag[data-tag="???i"] {
  background: rgba(230, 126, 34, 0.15);
  border-color: #e67e22;
  color: #e67e22;
}
.news-tag[data-tag="???i"]::before,
.news-detail-tag[data-tag="???i"]::before {
  background: #e67e22;
}

/* ??s - ??? */
.news-tag[data-tag="??s"],
.news-detail-tag[data-tag="??s"] {
  background: rgba(39, 174, 96, 0.15);
  border-color: #27ae60;
  color: #27ae60;
}
.news-tag[data-tag="??s"]::before,
.news-detail-tag[data-tag="??s"]::before {
  background: #27ae60;
}

/* ???? - ???? */
.news-tag[data-tag="????"],
.news-detail-tag[data-tag="????"] {
  background: rgba(231, 76, 60, 0.15);
  border-color: #e74c3c;
  color: #e74c3c;
}
.news-tag[data-tag="????"]::before,
.news-detail-tag[data-tag="????"]::before {
  background: #e74c3c;
}

/* ???? - ???? */
.news-tag[data-tag="????"],
.news-detail-tag[data-tag="????"] {
  background: rgba(155, 89, 182, 0.15);
  border-color: #9b59b6;
  color: #9b59b6;
}
.news-tag[data-tag="????"]::before,
.news-detail-tag[data-tag="????"]::before {
  background: #9b59b6;
}

/* ?q?μ????? */
.news-tag,
.news-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px dashed;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.news-tag::before,
.news-detail-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  clip-path: var(--star4);
}

/* ========================================
   NEWS LIST PAGE - 完整樣式
   ======================================== */

/* 麵包屑 */
.breadcrumb {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  border-bottom: none;
}
.breadcrumb a {
  color: var(--copper);
  text-decoration: underline;
}
.breadcrumb a:hover {
  color: var(--copper-light);
}

/* 頁面標題 */
.page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 32px;
  padding-bottom: 20px;
  position: relative;
  text-align: center;
}
.page-title::before {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--copper-light);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 6px var(--copper-light));
  flex-shrink: 0;
}
.page-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
}

/* 列表容器 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* 卡片 */
.news-item {
  display: flex;
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-secondary) 100%);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--line-light);
  transition: all 0.3s;
}
.news-item:hover {
  border-color: var(--copper);
  transform: translateX(4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(205,127,50,0.4);
}
.news-item:hover::before {
  background: linear-gradient(180deg, var(--copper) 0%, var(--orange) 100%);
}

/* 左側縮圖區 */
.news-thumb {
  flex-shrink: 0;
  width: 220px;
  min-height: 180px;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.news-item:hover .news-thumb img {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}

/* 無圖時的星星 */
.news-thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  position: relative;
}
.news-thumb-placeholder::before {
  content: "";
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.news-thumb-placeholder::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 8px;
}

/* 右側內容區 */
.news-content {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* 標題列 */
.news-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.news-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  flex: 1;
  line-height: 1.4;
  margin: 0;
  transition: color 0.3s;
}
.news-item:hover .news-title {
  color: var(--copper-light);
}

/* 日期+分享 */
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.news-date {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.news-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}
.news-share:hover {
  background: linear-gradient(135deg, var(--orange) 0%, var(--copper) 100%);
  transform: translateY(-2px);
}
.news-share svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* 摘要 */
.news-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 底部 */
.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* 標籤 */
.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  background: rgba(205, 127, 50, 0.1);
  border: 1px dashed var(--copper);
  border-radius: 20px;
  font-size: 12px;
  color: var(--copper-light);
  font-weight: 600;
}
.news-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--copper-light);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* 分類顏色 */
.news-tag[data-tag="公告"] { background: rgba(230,126,34,0.1); border-color: #e67e22; color: #e67e22; }
.news-tag[data-tag="公告"]::before { background: #e67e22; }
.news-tag[data-tag="最新"] { background: rgba(39,174,96,0.1); border-color: #27ae60; color: #27ae60; }
.news-tag[data-tag="最新"]::before { background: #27ae60; }
.news-tag[data-tag="維修"] { background: rgba(231,76,60,0.1); border-color: #e74c3c; color: #e74c3c; }
.news-tag[data-tag="維修"]::before { background: #e74c3c; }
.news-tag[data-tag="活動"] { background: rgba(155,89,182,0.1); border-color: #9b59b6; color: #9b59b6; }
.news-tag[data-tag="活動"]::before { background: #9b59b6; }
.news-tag[data-tag="功能更新"] { background: rgba(52,152,219,0.1); border-color: #3498db; color: #3498db; }
.news-tag[data-tag="功能更新"]::before { background: #3498db; }
.news-tag[data-tag="QA"] { background: rgba(241,196,15,0.1); border-color: #f1c40f; color: #f1c40f; }
.news-tag[data-tag="QA"]::before { background: #f1c40f; }

/* 閱讀更多 */
.news-readmore {
  font-size: 13px;
  color: var(--copper);
  font-weight: 600;
  transition: all 0.3s;
}
.news-readmore::after {
  content: " ?";
  font-size: 10px;
}
.news-item:hover .news-readmore {
  color: var(--copper-light);
}

/* 分頁 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.page-btn:hover:not(.active):not(.disabled) {
  border-color: var(--copper);
  color: var(--copper-light);
  background: rgba(205,127,50,0.1);
}
.page-btn.active {
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  border-color: var(--copper-light);
  color: #fff;
}
.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 空狀態 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--copper);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.3;
}
.empty-state-text {
  font-size: 16px;
}

/* ========================================
   NEWS DETAIL PAGE
   ======================================== */
.news-detail {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-secondary) 100%);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.news-detail-header {
  padding: 28px;
  border-bottom: 1px dashed var(--line);
}
.news-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(205,127,50,0.1);
  border: 1px dashed var(--copper);
  border-radius: 20px;
  font-size: 12px;
  color: var(--copper-light);
  font-weight: 600;
  margin-bottom: 14px;
}
.news-detail-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--copper-light);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.news-detail-tag[data-tag="公告"] { background: rgba(230,126,34,0.1); border-color: #e67e22; color: #e67e22; }
.news-detail-tag[data-tag="公告"]::before { background: #e67e22; }
.news-detail-tag[data-tag="最新"] { background: rgba(39,174,96,0.1); border-color: #27ae60; color: #27ae60; }
.news-detail-tag[data-tag="最新"]::before { background: #27ae60; }
.news-detail-tag[data-tag="維修"] { background: rgba(231,76,60,0.1); border-color: #e74c3c; color: #e74c3c; }
.news-detail-tag[data-tag="維修"]::before { background: #e74c3c; }
.news-detail-tag[data-tag="活動"] { background: rgba(155,89,182,0.1); border-color: #9b59b6; color: #9b59b6; }
.news-detail-tag[data-tag="活動"]::before { background: #9b59b6; }

.news-detail-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin: 0 0 14px;
}
.news-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.news-detail-date {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-detail-date::before {
  content: "??";
}
.news-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.news-share-btn:hover {
  background: linear-gradient(135deg, var(--orange) 0%, var(--copper) 100%);
  transform: translateY(-2px);
}
.news-detail-image {
  width: 100%;
  background: var(--bg);
  display: flex;
  justify-content: center;
  padding: 20px;
}
.news-detail-image img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.news-detail-content {
  padding: 28px;
  font-size: 15px;
  line-height: 2;
  color: var(--ink);
}
.news-detail-content h3 {
  color: var(--copper-light);
  margin: 20px 0 10px;
  font-size: 16px;
}
.news-detail-footer {
  padding: 20px 28px;
  border-top: 1px dashed var(--line);
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px dashed var(--copper);
  border-radius: 20px;
  color: var(--copper-light);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.back-btn:hover {
  background: var(--copper);
  color: #fff;
}

/* 響應式 */
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
  }
  .news-thumb {
    width: 100%;
    min-height: 160px;
    height: 160px;
  }
  .news-content {
    padding: 16px;
  }
  .news-header {
    flex-direction: column;
    gap: 10px;
  }
  .news-meta {
    width: 100%;
    justify-content: space-between;
  }
  .news-title {
    font-size: 16px;
  }
  .news-detail-header,
  .news-detail-content,
  .news-detail-footer {
    padding: 20px 16px;
  }
  .news-detail-title {
    font-size: 20px;
  }
}

/* ========================================
   強制覆蓋 - 確保縮圖區橘色背景
   ======================================== */
.news-thumb,
.news-item .news-thumb {
  background: linear-gradient(135deg, #cd7f32 0%, #a65e1a 100%) !important;
  flex-shrink: 0 !important;
  width: 220px !important;
  min-height: 180px !important;
}

.news-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* 無圖時的橘色背景+星星 */
.news-thumb-placeholder {
  background: linear-gradient(135deg, #cd7f32 0%, #a65e1a 100%) !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 180px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.news-thumb-placeholder::before {
  content: "" !important;
  width: 50px !important;
  height: 50px !important;
  background: rgba(255,255,255,0.25) !important;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%) !important;
}

/* ========================================
   修正麵包屑和標題 - 靠左排版
   ======================================== */

/* 麵包屑靠左 */
.breadcrumb {
  text-align: left !important;
  padding: 15px 20px !important;
  font-size: 13px !important;
  color: var(--muted) !important;
  background: transparent !important;
  border-bottom: none !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* 頁面標題靠左 */
.page-title {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  margin-bottom: 24px !important;
  padding-bottom: 16px !important;
  position: relative !important;
  text-align: left !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.page-title::before {
  content: "" !important;
  width: 18px !important;
  height: 18px !important;
  background: var(--copper-light) !important;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%) !important;
  filter: drop-shadow(0 0 6px var(--copper-light)) !important;
  flex-shrink: 0 !important;
}

/* 底線從左邊拉到右邊 */
.page-title::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 20px !important;
  right: 20px !important;
  height: 2px !important;
  background: linear-gradient(90deg, var(--copper) 0%, var(--copper-dark) 50%, transparent 100%) !important;
  transform: none !important;
  width: auto !important;
}

/* container 調整 */
.container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 20px !important;
}

/* ========================================
   對齊 Header LOGO 位置
   ======================================== */

/* 麵包屑對齊 */
.breadcrumb {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 15px 16px !important;
  text-align: left !important;
}

/* 標題對齊 */
.page-title {
  max-width: 1200px !important;
  margin: 0 auto 24px !important;
  padding: 0 16px 16px !important;
  justify-content: flex-start !important;
}

.page-title::after {
  left: 16px !important;
  right: 16px !important;
}

/* 列表對齊 */
.news-list {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
}

/* 分頁對齊 */
.pagination {
  max-width: 1200px !important;
  margin: 40px auto 0 !important;
  padding: 0 16px !important;
  justify-content: flex-start !important;
}

/* ========================================
   Icon Nav 固定大小 - 圖二樣式
   ======================================== */

.icon-nav {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
}

.icon-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 70px !important;
  height: 56px !important;
  padding: 8px 4px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
  border-radius: 8px !important;
  transition: all 0.3s !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  text-decoration: none !important;
}

.icon-link:hover,
.icon-link.active {
  color: var(--copper-light) !important;
  background: rgba(205, 127, 50, 0.15) !important;
  border-color: var(--copper) !important;
}

.icon-box {
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 4px !important;
}

.icon-box svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
}

/* 當前頁面高亮 */
.icon-link[href="news.html"],
.icon-link.current {
  color: var(--copper-light) !important;
  background: rgba(205, 127, 50, 0.15) !important;
  border-color: var(--copper) !important;
}

/* ========================================
   移除固定高亮 - 只保留 hover
   ======================================== */

.icon-link[href="news.html"] {
  color: var(--muted) !important;
  background: transparent !important;
  border-color: transparent !important;
}

.icon-link[href="news.html"]:hover {
  color: var(--copper-light) !important;
  background: rgba(205, 127, 50, 0.15) !important;
  border-color: var(--copper) !important;
}

/* ========================================
   Icon Nav 顏色加亮
   ======================================== */

.icon-link {
  color: #a0a0b0 !important;
}

.icon-link:hover {
  color: var(--copper-light) !important;
  background: rgba(205, 127, 50, 0.15) !important;
  border-color: var(--copper) !important;
}

.icon-box svg {
  fill: currentColor !important;
}

/* ========================================
   修正最新消息 icon 顏色
   ======================================== */

.icon-link,
.icon-link[href="news.html"],
.icon-nav .icon-link {
  color: #a0a0b0 !important;
  background: transparent !important;
  border-color: transparent !important;
}

.icon-link:hover,
.icon-link[href="news.html"]:hover,
.icon-nav .icon-link:hover {
  color: #e8a54b !important;
  background: rgba(205, 127, 50, 0.15) !important;
  border-color: #cd7f32 !important;
}

/* ========================================
   NOTICE PAGE - 注意事項頁面
   ======================================== */

/* 重要公告 */
.notice-alert {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, rgba(205, 127, 50, 0.05) 100%);
  border: 1px dashed var(--copper);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.notice-alert-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--copper-light);
}

.notice-alert-content {
  flex: 1;
}

.notice-alert-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--copper-light);
  margin-bottom: 8px;
}

.notice-alert-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* 分頁標籤 */
.notice-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
  flex-wrap: wrap;
}

.notice-tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  margin-bottom: -1px;
}

.notice-tab:hover {
  color: var(--copper-light);
}

.notice-tab.active {
  color: var(--copper-light);
  border-bottom-color: var(--copper);
  background: rgba(205, 127, 50, 0.1);
}

/* 分頁內容 */
.notice-content {
  min-height: 300px;
}

.notice-panel {
  display: none;
}

.notice-panel.active {
  display: block;
}

/* FAQ 手風琴 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: var(--copper);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.faq-question:hover {
  background: rgba(205, 127, 50, 0.05);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.faq-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: transform 0.3s;
}

.faq-arrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px 60px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  display: block;
}

/* 購買流程 - 步驟 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.step-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  position: relative;
}

/* 連接線 */
.step-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 60px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.step-item:last-child::before {
  display: none;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.step-content {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-title::before {
  content: "•";
  color: var(--copper);
}

.step-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* 運費表格 */
.shipping-table {
  margin-bottom: 24px;
  overflow-x: auto;
}

.shipping-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
}

.shipping-table th,
.shipping-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.shipping-table th {
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.shipping-table td {
  font-size: 14px;
  color: var(--ink);
}

.shipping-table tr:last-child td {
  border-bottom: none;
}

.shipping-table tr:hover td {
  background: rgba(205, 127, 50, 0.05);
}

/* 響應式 */
@media (max-width: 768px) {
  .notice-tabs {
    gap: 4px;
  }
  
  .notice-tab {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .faq-question {
    padding: 14px 16px;
  }
  
  .faq-answer {
    padding: 0 16px 16px 50px;
  }
  
  .step-item {
    gap: 16px;
  }
  
  .step-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .step-item::before {
    left: 17px;
    top: 56px;
  }
}

/* ========================================
   USER AUTH - 登入狀態 UI
   ======================================== */

/* 會員資訊區 */
.user-info {
  display: flex;
  align-items: center;
  margin-left: 12px;
}

.user-info-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  background: rgba(205, 127, 50, 0.1);
  border: 1px dashed var(--copper);
  border-radius: 30px;
}

/* 頭像 */
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--copper);
  object-fit: cover;
}

.user-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar-placeholder::before {
  content: "";
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,0.3);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* 會員資訊 */
.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-nickname {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.user-points {
  font-size: 12px;
  color: var(--copper-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.points-icon {
  font-size: 11px;
}

/* 登出按鈕 */
.logout-btn {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font);
}

.logout-btn:hover {
  background: rgba(231, 76, 60, 0.1);
  border-color: #e74c3c;
  color: #e74c3c;
}

/* 響應式 - 手機版 */
@media (max-width: 768px) {
  .user-info {
    margin-left: 8px;
  }
  
  .user-info-inner {
    padding: 4px 8px;
    gap: 8px;
  }
  
  .user-avatar,
  .user-avatar-placeholder {
    width: 28px;
    height: 28px;
  }
  
  .user-nickname {
    font-size: 12px;
  }
  
  .user-points {
    font-size: 11px;
  }
  
  .logout-btn {
    padding: 4px 10px;
    font-size: 11px;
  }
}

/* 手機版更小螢幕 - 只顯示頭像和登出 */
@media (max-width: 480px) {
  .user-details {
    display: none;
  }
  
  .user-info-inner {
    padding: 4px;
    gap: 6px;
  }
}

/* ========================================
   USER AUTH - 優化樣式
   ======================================== */

/* 頭像佔位符優化 */
.user-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--copper-light);
}

.user-avatar-placeholder svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.7);
}

/* 點數圖示 */
.points-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
  border-radius: 50%;
  margin-right: 4px;
  position: relative;
}

.points-icon::after {
  content: "??";
  font-size: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 點數數值 */
.points-value {
  font-weight: 700;
  color: #ffd700;
}

/* ========================================
   USER INFO 靠右對齊
   ======================================== */
.main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 會員資訊靠右 */
.user-info {
  margin-left: auto !important;
  order: 99 !important;
}

/* 登入按鈕隱藏（已登入時） */
.icon-link[style*="display: none"] {
  display: none !important;
}

/* 強制隱藏登入按鈕（已登入時） */
.icon-link.auth-hidden {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* 會員資訊靠右邊 */
#iconNav {
  position: relative;
}

.user-info {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* 或者用 flexbox */
#iconNav {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.user-info {
  position: relative !important;
  transform: none !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

/* ========================================
   USER INFO 在 HEADER 右邊
   ======================================== */

.main-header-inner {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

/* 會員資訊區 - 在 header 右側 */
.main-header-inner > .user-info {
  margin-left: auto !important;
  margin-right: 12px !important;
  order: 99 !important;
}

/* header-grow 不佔空間 */
.header-grow {
  flex: 1 !important;
}

/* 確保會員資訊在 grow 後面 */
.user-info {
  flex-shrink: 0 !important;
}

.user-info-inner {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 16px !important;
  background: rgba(205, 127, 50, 0.1) !important;
  border: 1px dashed var(--copper) !important;
  border-radius: 30px !important;
}

.user-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 2px solid var(--copper) !important;
  object-fit: cover !important;
}

.user-avatar-placeholder {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid var(--copper-light) !important;
}

.user-avatar-placeholder svg {
  width: 20px !important;
  height: 20px !important;
  fill: rgba(255,255,255,0.7) !important;
}

.user-details {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.user-nickname {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}

.user-points {
  font-size: 13px !important;
  color: var(--copper-light) !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.points-icon {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%) !important;
  border-radius: 50% !important;
}

.points-value {
  font-weight: 700 !important;
  color: #ffd700 !important;
}

.logout-btn {
  padding: 8px 16px !important;
  background: transparent !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  font-family: var(--font) !important;
}

.logout-btn:hover {
  background: rgba(231, 76, 60, 0.1) !important;
  border-color: #e74c3c !important;
  color: #e74c3c !important;
}

/* 手機版 */
@media (max-width: 768px) {
  .main-header-inner > .user-info {
    margin-right: 8px !important;
  }
  
  .user-info-inner {
    padding: 6px 10px !important;
    gap: 8px !important;
  }
  
  .user-avatar,
  .user-avatar-placeholder {
    width: 30px !important;
    height: 30px !important;
  }
  
  .user-nickname {
    font-size: 12px !important;
  }
  
  .user-points {
    font-size: 11px !important;
  }
  
  .logout-btn {
    padding: 6px 12px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 480px) {
  .user-details {
    display: none !important;
  }
  
  .user-info-inner {
    padding: 6px !important;
    gap: 6px !important;
  }
  
  .logout-btn {
    padding: 6px 10px !important;
  }
}

/* ========================================
   手機版 HEADER 調整
   ======================================== */

@media (max-width: 768px) {
  /* 隱藏 icon-nav 導覽列 */
  .icon-nav {
    display: none !important;
  }
  
  /* header 結構調整 */
  .main-header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
    gap: 10px !important;
  }
  
  /* LOGO */
  .site-logo {
    flex-shrink: 0 !important;
  }
  
  /* header-grow 隱藏 */
  .header-grow {
    display: none !important;
  }
  
  /* 會員資訊 - 手機版樣式 */
  .main-header-inner > .user-info {
    flex: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .user-info-inner {
    padding: 8px 12px !important;
    gap: 10px !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }
  
  .user-avatar,
  .user-avatar-placeholder {
    width: 32px !important;
    height: 32px !important;
  }
  
  .user-details {
    display: flex !important;
    flex: 1 !important;
  }
  
  .user-nickname {
    font-size: 13px !important;
    max-width: 120px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  
  .user-points {
    font-size: 12px !important;
  }
  
  .logout-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    margin-left: auto !important;
  }
  
  /* 漢堡菜單顯示 */
  .hamburger {
    display: flex !important;
    flex-shrink: 0 !important;
    order: 999 !important;
  }
}

/* 更小螢幕 */
@media (max-width: 480px) {
  .main-header-inner {
    padding: 8px 10px !important;
    gap: 8px !important;
  }
  
  /* 會員資訊簡化 */
  .user-info-inner {
    padding: 6px 10px !important;
    gap: 8px !important;
  }
  
  .user-avatar,
  .user-avatar-placeholder {
    width: 28px !important;
    height: 28px !important;
  }
  
  .user-nickname {
    font-size: 12px !important;
    max-width: 80px !important;
  }
  
  .user-points {
    font-size: 11px !important;
  }
  
  .points-icon {
    width: 14px !important;
    height: 14px !important;
  }
  
  .logout-btn {
    padding: 5px 10px !important;
    font-size: 11px !important;
  }
  
  .site-logo img {
    height: 36px !important;
  }
  
  .site-logo span {
    font-size: 16px !important;
  }
}

/* 超小螢幕 - 隱藏暱稱只顯示點數 */
@media (max-width: 360px) {
  .user-nickname {
    display: none !important;
  }
  
  .user-details {
    flex-direction: row !important;
    align-items: center !important;
  }
  
  .user-info-inner {
    padding: 5px 8px !important;
  }
}

/* ========================================
   手機版 - 強制隱藏導覽列
   ======================================== */

@media (max-width: 768px) {
  /* 強制隱藏 icon-nav */
  #iconNav,
  .icon-nav,
  nav.icon-nav,
  .main-header-inner .icon-nav,
  .main-header-inner > .icon-nav,
  .main-header .icon-nav {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
  }
  
  /* 顯示漢堡菜單 */
  #openMenu,
  .hamburger,
  button.hamburger {
    display: flex !important;
    visibility: visible !important;
  }
}

 ========================================
   子選單修正 - 加到 style.css 最底部
   ======================================== */

/* 修正：主選單只套用在直接子元素 */
#navMobile > a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px dashed var(--line-light);
  transition: all 0.3s ease;
  position: relative;
}

#navMobile > a::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 12px;
  flex-shrink: 0;
  background: var(--copper);
  clip-path: var(--star4);
  opacity: 0.5;
  transition: all 0.3s ease;
}

#navMobile > a:hover {
  background: rgba(205, 127, 50, 0.15);
  border-color: var(--copper);
  color: var(--copper-light);
}

#navMobile > a:hover::before {
  opacity: 1;
  background: var(--copper-light);
  filter: drop-shadow(0 0 4px var(--copper-light));
}

/* 子選單容器 */
.mobile-nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: -1px;
  margin-left: 12px;
  border-left: 2px solid var(--line);
}

.mobile-nav-group.open .mobile-nav-submenu {
  max-height: 500px;
  padding: 8px 0;
}

/* 子選單項目 - 高優先級覆蓋 */
#navMobile .mobile-nav-submenu a,
#navMobile .mobile-nav-submenu a.mobile-nav-subitem,
.mobile-nav-submenu a.mobile-nav-subitem,
a.mobile-nav-subitem {
  display: flex !important;
  align-items: center !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  color: #8a8a9a !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dashed #1a1a28 !important;
  border-radius: 0 !important;
  transition: all 0.3s ease !important;
}

#navMobile .mobile-nav-submenu a:last-child,
.mobile-nav-submenu a.mobile-nav-subitem:last-child {
  border-bottom: none !important;
}

/* 子選單 ::before - 橫線符號 */
#navMobile .mobile-nav-submenu a::before,
#navMobile .mobile-nav-submenu a.mobile-nav-subitem::before,
.mobile-nav-submenu a.mobile-nav-subitem::before,
a.mobile-nav-subitem::before {
  content: "—" !important;
  width: auto !important;
  height: auto !important;
  margin-right: 10px !important;
  flex-shrink: 0 !important;
  background: none !important;
  clip-path: none !important;
  opacity: 1 !important;
  filter: none !important;
  color: #454555 !important;
  font-size: 12px !important;
  position: static !important;
  transform: none !important;
}

/* 子選單 hover 效果 */
#navMobile .mobile-nav-submenu a:hover,
#navMobile .mobile-nav-submenu a.mobile-nav-subitem:hover,
.mobile-nav-submenu a.mobile-nav-subitem:hover,
a.mobile-nav-subitem:hover {
  color: #e8a54b !important;
  background: rgba(205, 127, 50, 0.1) !important;
  padding-left: 20px !important;
}

#navMobile .mobile-nav-submenu a:hover::before,
.mobile-nav-submenu a.mobile-nav-subitem:hover::before {
  color: #cd7f32 !important;
}

/* ========================================
   新版漢堡菜單樣式
   加到 style.css 最底部
   ======================================== */

/* === DRAWER 面板 === */
.drawer .panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 85vw;
  max-width: 320px;
  background: linear-gradient(180deg, #0d0d15 0%, #070710 100%);
  border-left: 2px solid var(--copper);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(205, 127, 50, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer.open .panel {
  transform: translateX(0);
}

/* === 關閉按鈕區 === */
.drawer .panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(205, 127, 50, 0.3);
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.drawer .panel-header span {
  display: none;
}

.drawer .panel-header .hamburger {
  display: flex;
  background: transparent;
  border: 1px solid rgba(205, 127, 50, 0.5);
  color: var(--copper-light);
  width: 36px;
  height: 36px;
}

/* === 會員資訊區 === */
.mobile-user-section {
  padding: 20px 16px;
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(255, 140, 66, 0.08) 100%);
  border-bottom: 1px solid rgba(205, 127, 50, 0.3);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.mobile-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper) 0%, var(--orange) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  border: 2px solid var(--copper-light);
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.4);
  flex-shrink: 0;
  overflow: hidden;
}

.mobile-user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.mobile-user-info {
  flex: 1;
  min-width: 0;
}

.mobile-user-name {
  font-size: 16px;
  font-weight: 600;
  color: #f0f0f5;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-user-points {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--copper-light);
  border: 1px solid rgba(205, 127, 50, 0.3);
}

.mobile-user-points::before {
  content: "?";
  font-size: 12px;
}

/* === 未登入 === */
.mobile-login-prompt {
  padding: 20px 16px;
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, rgba(255, 140, 66, 0.05) 100%);
  border-bottom: 1px solid rgba(205, 127, 50, 0.3);
  text-align: center;
  flex-shrink: 0;
}

.mobile-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.mobile-login-btn:hover {
  background: linear-gradient(135deg, var(--copper-light) 0%, var(--copper) 100%);
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.5);
}

/* === 導航區 === */
#navMobile {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}

#navMobile::-webkit-scrollbar {
  width: 4px;
}

#navMobile::-webkit-scrollbar-thumb {
  background: rgba(205, 127, 50, 0.3);
  border-radius: 2px;
}

/* === 分組標題 === */
.mobile-nav-section-title {
  padding: 14px 16px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #6a6a7a;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-section-title:first-child {
  border-top: none;
}

/* === 快捷圖標區 === */
.mobile-nav-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #b0b0c0;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.mobile-nav-icon-item:hover {
  background: rgba(205, 127, 50, 0.15);
  border-color: rgba(205, 127, 50, 0.4);
  color: var(--copper-light);
}

/* === 主選單項目 === */
.mobile-nav-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: #e0e0e8;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-nav-item::before {
  content: attr(data-icon);
  font-size: 18px;
  margin-right: 14px;
  opacity: 0.8;
  width: 24px;
  text-align: center;
}

.mobile-nav-item:hover {
  background: rgba(205, 127, 50, 0.1);
  color: var(--copper-light);
  padding-left: 20px;
}

/* 一般連結（無 class） */
#navMobile > a:not(.mobile-nav-item):not(.mobile-nav-icon-item) {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: #e0e0e8;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

#navMobile > a:not(.mobile-nav-item):not(.mobile-nav-icon-item)::before {
  content: "??";
  font-size: 16px;
  margin-right: 12px;
  opacity: 0.7;
}

#navMobile > a:not(.mobile-nav-item):not(.mobile-nav-icon-item):hover {
  background: rgba(205, 127, 50, 0.1);
  color: var(--copper-light);
  padding-left: 20px;
}

/* === 群組 === */
.mobile-nav-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-nav-group-title {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: #e0e0e8;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.mobile-nav-group-title .group-icon {
  font-size: 18px;
  margin-right: 12px;
  opacity: 0.8;
}

.mobile-nav-group-title:hover {
  background: rgba(205, 127, 50, 0.08);
  color: var(--copper-light);
}

.mobile-nav-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--copper);
  transition: transform 0.3s ease;
  margin-left: auto;
}

.mobile-nav-group.open .mobile-nav-arrow {
  transform: rotate(180deg);
}

/* === 子選單 === */
.mobile-nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid rgba(205, 127, 50, 0.3);
  margin-left: 16px;
}

.mobile-nav-group.open .mobile-nav-submenu {
  max-height: 500px;
}

.mobile-nav-submenu a,
.mobile-nav-submenu a.mobile-nav-subitem,
#navMobile .mobile-nav-submenu a {
  display: flex !important;
  align-items: center !important;
  padding: 12px 16px !important;
  color: #9a9aaa !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02) !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.mobile-nav-submenu a::before,
#navMobile .mobile-nav-submenu a::before {
  content: "├" !important;
  font-family: monospace !important;
  color: rgba(205, 127, 50, 0.5) !important;
  margin-right: 10px !important;
  font-size: 14px !important;
  background: none !important;
  clip-path: none !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  filter: none !important;
}

.mobile-nav-submenu a:last-child::before,
#navMobile .mobile-nav-submenu a:last-child::before {
  content: "└" !important;
}

.mobile-nav-submenu a:last-child {
  border-bottom: none !important;
}

.mobile-nav-submenu a:hover,
#navMobile .mobile-nav-submenu a:hover {
  background: rgba(205, 127, 50, 0.1) !important;
  color: var(--copper-light) !important;
  padding-left: 24px !important;
}

/* === 底部區 === */
.mobile-nav-footer {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid rgba(205, 127, 50, 0.2);
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.mobile-nav-footer-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #9a9aaa;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.mobile-nav-footer-item::before {
  content: attr(data-icon);
  font-size: 16px;
  margin-right: 12px;
  opacity: 0.7;
}

.mobile-nav-footer-item:hover {
  background: rgba(205, 127, 50, 0.1);
  color: var(--copper-light);
}

.mobile-nav-footer-item.logout {
  color: #ff6b6b;
}

.mobile-nav-footer-item.logout:hover {
  background: rgba(255, 107, 107, 0.1);
  color: #ff8a8a;
}

/* ========================================
   漢堡菜單修正 - Big5 相容版
   把這段加到 style.css 最底部
   ======================================== */

/* 會員頭像區 - 用四角星取代 emoji */
.mobile-user-avatar::before {
  content: "" !important;
  width: 24px !important;
  height: 24px !important;
  background: rgba(255,255,255,0.6) !important;
  clip-path: var(--star4) !important;
}

.mobile-user-avatar img ~ *,
.mobile-user-avatar:has(img)::before {
  display: none !important;
}

/* 點數星星 - 用 CSS 圖形 */
.mobile-user-points::before {
  content: "" !important;
  width: 14px !important;
  height: 14px !important;
  background: #ffd700 !important;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%) !important;
  flex-shrink: 0 !important;
}

/* 登入按鈕圖標 */
.mobile-login-btn::before {
  content: "" !important;
  width: 18px !important;
  height: 18px !important;
  background: rgba(255,255,255,0.8) !important;
  clip-path: polygon(50% 0%, 100% 35%, 100% 100%, 0% 100%, 0% 35%) !important;
  flex-shrink: 0 !important;
}

/* 選單項目 - 用四角星取代所有 emoji */
.mobile-nav-item::before,
.mobile-nav-group-title::before {
  content: "" !important;
  width: 16px !important;
  height: 16px !important;
  margin-right: 12px !important;
  flex-shrink: 0 !important;
  background: var(--copper) !important;
  clip-path: var(--star4) !important;
  opacity: 0.7 !important;
  transition: all 0.3s ease !important;
}

.mobile-nav-item:hover::before,
.mobile-nav-group-title:hover::before {
  opacity: 1 !important;
  background: var(--copper-light) !important;
  filter: drop-shadow(0 0 4px var(--copper-light)) !important;
}

/* 移除 data-icon 屬性產生的文字 */
.mobile-nav-item[data-icon]::before,
.mobile-nav-group-title .group-icon {
  font-size: 0 !important;
  color: transparent !important;
}

/* 子選單項目 - 用短線 */
#navMobile .mobile-nav-submenu a::before {
  content: "" !important;
  width: 10px !important;
  height: 2px !important;
  margin-right: 10px !important;
  background: rgba(205, 127, 50, 0.5) !important;
  clip-path: none !important;
  opacity: 1 !important;
}

#navMobile .mobile-nav-submenu a:hover::before {
  background: var(--copper-light) !important;
}

/* 底部項目圖標 */
.mobile-nav-footer-item::before {
  content: "" !important;
  width: 14px !important;
  height: 14px !important;
  margin-right: 10px !important;
  background: currentColor !important;
  opacity: 0.6 !important;
  clip-path: var(--star4) !important;
}

/* 登出用箭頭 */
.mobile-nav-footer-item.logout::before {
  clip-path: polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%) !important;
  background: currentColor !important;
}

/* 移除 data-icon 的文字顯示 */
.mobile-nav-footer-item[data-icon]::before {
  font-size: 0 !important;
}






































































