/* ========================================
   COSMIC HOME.CSS - Big5 Compatible
   Four-pointed Star Version
   ======================================== */

/* ====== 粒子畫布 ====== */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

: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;
  overflow-x: hidden;
}

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
   ======================================== */

.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 !important;
  flex-wrap: wrap;
  align-items: center !important;
  row-gap: 12px;
  column-gap: 24px;
  gap: 16px !important;
}

.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: 0;
  box-shadow: 0 2px 12px rgba(232,165,75,.22);
}
.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 !important; }

/* ========================================
   Icon Nav
   ======================================== */

.icon-nav {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center !important;
  gap: 0 !important;
}

.icon-link,
.icon-link[href="news.html"],
.icon-nav .icon-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  width: 80px !important;
  height: 64px !important;
  padding: 8px 4px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #a0a0b0 !important;
  background: transparent !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  transition: all 0.3s !important;
  text-decoration: none !important;
}

.icon-link:hover,
.icon-link[href="news.html"]:hover,
.icon-nav .icon-link:hover,
.icon-link.active {
  color: #e8a54b !important;
  background: rgba(205, 127, 50, 0.15) !important;
  border-color: #cd7f32 !important;
}

.icon-box {
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 4px !important;
}

.icon-box svg {
  width: 24px !important;
  height: 24px !important;
  fill: currentColor !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;
}

/* ========================================
   Hamburger
   ======================================== */

.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
   ======================================== */

.topbar {
  background: linear-gradient(180deg, rgba(15,15,24,0.95) 0%, rgba(10,10,18,0.98) 100%);
  border-top: none;
  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: 0;
  flex: 1;
  padding: 0 16px;
}

.nav-btn {
  min-width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: none !important;
  background-size: unset;
  background-position: unset;
  color: var(--muted);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  cursor: pointer;
  transition: color 0.3s;
  overflow: visible;
  text-decoration: none;
}

.nav-btn::before {
  position: static;
  content: attr(data-text);
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background-color: transparent !important;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0;
  white-space: nowrap;
  transition: color 0.3s;
}

.nav-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--orange));
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-btn:hover {
  background-position: unset;
  color: var(--copper-light);
}
.nav-btn:hover::before {
  color: var(--copper-light);
  background-position: unset;
}
.nav-btn:hover::after { width: 60%; }
.nav-btn:active { transform: none; }

.nav-btn.active,
.dropdown.active .nav-btn,
.top-links > :first-child .nav-btn,
.top-links > :first-child.nav-btn {
  color: var(--copper-light);
  font-weight: 600;
}
.nav-btn.active::before,
.dropdown.active .nav-btn::before,
.top-links > :first-child .nav-btn::before,
.top-links > :first-child.nav-btn::before {
  color: var(--copper-light);
}

.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; }

/* ========================================
   Search Box
   ======================================== */

.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 (Mobile Menu)
   ======================================== */

.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.open { pointer-events: auto; }
.drawer.open .overlay { opacity: 1; }

.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
   ======================================== */

.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-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);
}

/* ========================================
   Mobile Navigation
   ======================================== */

#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 { padding: 8px 0; }

.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-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  margin: 12px 0;
}

.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;
}

#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: "\251C" !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: "\2514" !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 Mobile Fix
   ======================================== */

.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;
}

.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;
}

.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;
}
.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;
}
.mobile-nav-footer-item[data-icon]::before {
  font-size: 0 !important;
}

/* ========================================
   Hero Slides
   ======================================== */

.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 Content & Cards (首頁商品卡片)
   ======================================== */

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; }

main.page .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;
}
main.page .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: var(--muted); }
.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: var(--muted);
  text-decoration: line-through;
}

@supports not (-webkit-background-clip: text) {
  .card .price-now {
    background: none;
    -webkit-text-fill-color: #e8a54b;
    color: #e8a54b;
  }
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg) 100%);
  border-top: 2px solid var(--copper);
  color: var(--muted);
  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 42px; }
.site-footer{padding-bottom:18px}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-inner.footer-has-extra{grid-template-columns:repeat(4,1fr);}

.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: var(--muted); 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: var(--muted);
}
.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: 0; line-height: 1.8; font-size: 14px; color: var(--muted); }
.footer-links a { color: var(--muted); transition: color 0.3s ease; display: inline; }
.footer-links a:hover { color: var(--copper-light); }

.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: var(--muted); }
.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: var(--muted); font-size: 13px; }
.footer-warning strong { color: var(--copper-light); }
.footer-copy { color: var(--muted); font-size: 13px; }

/* ========================================
   NEWS DETAIL PAGE (v2)
   ======================================== */

.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;
  font-family: var(--font);
}
.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-content p { margin-bottom: 18px; }
.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: 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; }

/* ========================================
   NEWS LIST PAGE
   ======================================== */

.breadcrumb {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 15px 16px !important;
  text-align: left !important;
  font-size: 13px !important;
  color: var(--muted) !important;
  background: transparent !important;
  border-bottom: none !important;
}
.breadcrumb a { color: var(--copper); text-decoration: underline; }
.breadcrumb a:hover { color: var(--copper-light); }

.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;
  max-width: 1200px !important;
  margin: 0 auto 24px !important;
  padding: 0 16px 16px !important;
  position: relative !important;
  text-align: left !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: 16px !important;
  right: 16px !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 {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 20px !important;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
}

.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,
.news-item .news-thumb {
  background: linear-gradient(135deg, #cd7f32 0%, #a65e1a 100%) !important;
  flex-shrink: 0 !important;
  width: 220px !important;
  min-height: 180px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.news-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}
.news-item:hover .news-thumb img {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}

.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;
  position: relative;
}
.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;
}
.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;
  align-items: center;
  gap: 8px;
  max-width: 1200px !important;
  margin: 40px auto 0 !important;
  padding: 0 16px !important;
  justify-content: flex-start !important;
}
.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; }

/* ========================================
   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-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); }

/* ========================================
   USER AUTH
   ======================================== */

#iconNav {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.main-header-inner > .user-info {
  margin-left: auto !important;
  margin-right: 12px !important;
  order: 99 !important;
}

.user-info {
  display: flex;
  align-items: center;
  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;
  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 !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;
}

/* ========================================
   iframe (保留給其他頁面用)
   ======================================== */

#contentFrame {
  width: 100%;
  border: none;
  display: block;
  min-height: 600px;
  background: transparent;
  position: relative;
  z-index: 1;
}

/* ========================================
   MACHINE CARDS (原 a01.html 樣式)
   用 .m- 前綴避免與首頁商品卡片衝突
   ======================================== */

.m-page-inner { max-width: 1400px; margin: 0 auto; padding: 30px 16px 40px; }
.m-grid-wrapper { position: relative; overflow: visible; margin: 0 -8px; padding: 8px; }
.m-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--card-gap); padding: 8px 0; }

.m-card {
  width: 100%;
  background: var(--panel);
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: var(--shadow-card);
  transition: all 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.m-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 30px rgba(205,127,50,0.3); }
.m-card::before, .m-card::after { display: none; }

/* 金色角落 */
.m-card .gold-corner { position: absolute; width: 40px; height: 40px; z-index: 10; pointer-events: none; opacity: 0.6; transition: opacity 0.35s; box-sizing: border-box; }
.m-card:hover .gold-corner { opacity: 1; }
.m-card .gold-corner.tl { top: 0; left: 0; border-top: 3px solid #e8a54b; border-left: 3px solid #e8a54b; }
.m-card .gold-corner.tr { top: 0; right: 0; border-top: 3px solid #e8a54b; border-right: 3px solid #e8a54b; }
.m-card .gold-corner.bl { bottom: 0; left: 0; border-bottom: 3px solid #e8a54b; border-left: 3px solid #e8a54b; }
.m-card .gold-corner.br { bottom: 0; right: 0; border-bottom: 3px solid #e8a54b; border-right: 3px solid #e8a54b; }

/* 封面 */
.m-card .m-cover-wrap { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--bg); }
.m-card .m-cover { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--bg); display: block; object-fit: contain; border-radius: 0; transition: all 0.4s ease; }
.m-card:hover .m-cover { transform: none; }

/* 狀態覆蓋 */
.m-card .status-overlay { position: absolute; inset: 0; z-index: 12; display: none; align-items: center; justify-content: center; pointer-events: none; }
.m-card .status-overlay.show { display: flex; }
.m-card .status-overlay .stamp { padding: 14px 28px; border-radius: 8px; font-size: 18px; font-weight: 900; font-family: 'Noto Sans TC', sans-serif; letter-spacing: 3px; text-align: center; transform: rotate(-12deg); border: 3px solid; pointer-events: none; }
.m-card .status-overlay .stamp.coming { background: rgba(7,7,12,0.75); color: #e8a54b; border-color: #e8a54b; box-shadow: 0 0 30px rgba(232,165,75,0.3), inset 0 0 20px rgba(232,165,75,0.1); }
.m-card .status-overlay .stamp.ended { background: rgba(7,7,12,0.8); color: #ef4444; border-color: #ef4444; box-shadow: 0 0 30px rgba(239,68,68,0.3), inset 0 0 20px rgba(239,68,68,0.1); }
.m-card.is-ended { opacity: 0.6; }
.m-card.is-ended:hover { transform: none; box-shadow: var(--shadow-card); }
.m-card.is-ended .card-open-btn { background: linear-gradient(135deg, #555 0%, #333 100%); cursor: default; }

/* 活動中徽章 */
.m-card .active-badge { position: absolute; top: 12px; left: 12px; z-index: 11; display: none; align-items: center; gap: 5px; padding: 5px 12px; font-size: 11px; font-weight: 700; background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); color: #fff; border: 1px solid #4ade80; box-shadow: 0 2px 12px rgba(34,197,94,0.5); }
.m-card .active-badge .pulse-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: activePulse 1.5s ease-in-out infinite; }
@keyframes activePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* 卡片內文 */
.m-card .m-body { padding: 16px; border-radius: 0; flex: 1; display: flex; flex-direction: column; }
.m-card .m-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 8px; 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)); }
.m-card .card-subtitle { font-size: 12px; color: #6a6a7a; margin-bottom: 8px; font-weight: 400; letter-spacing: 0.5px; line-height: 1.6; }
.m-card .card-date { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(205,127,50,0.2); font-size: 11px; color: #9a9aaa; margin-bottom: 10px; }
.m-card .card-date svg { width: 13px; height: 13px; fill: #9a9aaa; flex-shrink: 0; }
.m-card .card-stats { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.m-card .card-stat { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.m-card .card-stat svg { width: 15px; height: 15px; flex-shrink: 0; }
.m-card .card-stat-price { color: #e8a54b; font-weight: 700; font-family: Georgia, serif; }
.m-card .card-stat-price svg { fill: #e8a54b; }
.m-card .card-stat-price .stat-val { font-size: 18px; }
.m-card .card-stat-price .stat-unit { font-size: 11px; color: #6a6a7a; font-weight: 400; font-family: sans-serif; }
.m-card .card-stat-stock { color: #6a6a7a; font-size: 12px; font-weight: 500; }
.m-card .card-stat-stock .stock-num { color: #9a9aaa; }
.m-card .card-category { font-size: 10px; font-weight: 600; color: var(--copper-light); letter-spacing: 1px; margin-bottom: 4px; text-transform: uppercase; }

/* 開箱按鈕 */
.m-card .card-open-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 0; background: linear-gradient(135deg, #e8a54b 0%, #cd7f32 50%, #a65e1a 100%); color: #07070c; font-size: 15px; font-weight: 700; border: none; cursor: pointer; transition: all 0.3s; letter-spacing: 1px; font-family: "Microsoft JhengHei", sans-serif; margin-top: auto; }
.m-card .card-open-btn:hover { background: linear-gradient(135deg, #ffd700 0%, #e8a54b 50%, #cd7f32 100%); box-shadow: 0 4px 20px rgba(205,127,50,0.5); }
.m-card .card-open-btn svg { width: 18px; height: 18px; fill: #07070c; }

/* Machine cards RWD */
@media (max-width: 1100px) { .m-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .m-page-inner { padding: 16px 0 20px; }
  .m-grid-wrapper { margin: 0; padding: 0 16px; }
  .m-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; padding: 0; }
  .m-card .m-cover-wrap { aspect-ratio: 1; }
  .m-card .m-cover { height: 100% !important; aspect-ratio: 1; object-fit: contain !important; }
  .m-card:hover .m-cover { transform: none; }
  .m-card .m-body { padding: 10px 12px 14px; }
  .m-card .m-title { font-size: 13px; font-weight: 700; font-family: 'Noto Sans TC', sans-serif; margin-bottom: 4px; min-height: 0; }
  .m-card .card-subtitle { font-size: 11px; margin-bottom: 6px; }
  .m-card .card-date { font-size: 10px; padding: 3px 8px; margin-bottom: 8px; }
  .m-card .card-stat-price .stat-val { font-size: 16px; }
  .m-card .card-open-btn { padding: 10px 0; font-size: 13px; }
  .m-card .gold-corner { width: 28px; height: 28px; }
  .m-card .gold-corner.tl, .m-card .gold-corner.tr, .m-card .gold-corner.bl, .m-card .gold-corner.br { border-width: 2px; }
  .m-card .status-overlay .stamp { font-size: 15px; padding: 10px 20px; letter-spacing: 2px; }
  .m-card .active-badge { top: 8px; left: 8px; padding: 4px 10px; font-size: 10px; }
}

/* Machine card 進場動畫 */
@keyframes m-fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.m-card { animation: m-fadeUp 0.4s ease both; }
.m-card:nth-child(1) { animation-delay: 0s; }
.m-card:nth-child(2) { animation-delay: .06s; }
.m-card:nth-child(3) { animation-delay: .12s; }
.m-card:nth-child(4) { animation-delay: .18s; }
.m-card:nth-child(5) { animation-delay: .24s; }
.m-card:nth-child(6) { animation-delay: .3s; }

/* ========================================
   RESPONSIVE (原有)
   ======================================== */

@media (max-width: 1400px) {
  :root { --card-w: 260px; }
}

@media (max-width: 1100px) {
  :root { --card-w: 250px; }
  .footer-inner, .footer-inner.footer-has-extra { 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; }
  .slides .track { grid-auto-columns: 70%; }
  .slides .item { max-height: 320px; }
  .footer-inner, .footer-inner.footer-has-extra { grid-template-columns: 1fr; }
  .scroll-btn { width: 38px; height: 38px; }

  #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;
    flex-shrink: 0 !important;
    order: 999 !important;
  }

  .main-header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
    gap: 10px !important;
  }
  .site-logo { flex-shrink: 0 !important; }
  .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;
  }

  .news-item { flex-direction: column; }
  .news-thumb { width: 100% !important; min-height: 160px !important; 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; }

  .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; }
}

@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; }

  .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; }

  .user-details { display: none !important; }
  .user-info-inner { padding: 6px !important; gap: 6px !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; }
}

/* ========================================
   GOLD BORDER + GLASS EFFECTS (首頁商品卡片)
   ======================================== */

main.page .card {
  border: 2px solid rgba(205, 127, 50, 0.25) !important;
  transition: all 0.35s cubic-bezier(.4,0,.2,1) !important;
  position: relative !important;
  overflow: hidden !important;
}
main.page .card:hover {
  border-color: rgba(205, 127, 50, 0.65) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 25px rgba(205,127,50,0.25) !important;
}

main.page .card::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 4 !important;
  pointer-events: none !important;
  display: block !important;
  clip-path: none !important;
  border: none !important;
  border-radius: 0 !important;
  filter: none !important;
  width: auto !important;
  height: auto !important;
  inset: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background:
    linear-gradient(to right, #e8a54b 2px, transparent 2px) no-repeat 0 0 / 28px 2px,
    linear-gradient(to bottom, #e8a54b 2px, transparent 2px) no-repeat 0 0 / 2px 28px,
    linear-gradient(to left, #e8a54b 2px, transparent 2px) no-repeat 100% 0 / 28px 2px,
    linear-gradient(to bottom, #e8a54b 2px, transparent 2px) no-repeat 100% 0 / 2px 28px,
    linear-gradient(to right, #e8a54b 2px, transparent 2px) no-repeat 0 100% / 28px 2px,
    linear-gradient(to top, #e8a54b 2px, transparent 2px) no-repeat 0 100% / 2px 28px,
    linear-gradient(to left, #e8a54b 2px, transparent 2px) no-repeat 100% 100% / 28px 2px,
    linear-gradient(to top, #e8a54b 2px, transparent 2px) no-repeat 100% 100% / 2px 28px !important;
  opacity: 0 !important;
  transition: opacity 0.35s ease !important;
}
main.page .card:hover::before {
  opacity: 1 !important;
}

main.page .card::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  height: 2px !important;
  z-index: 5 !important;
  pointer-events: none !important;
  display: block !important;
  clip-path: none !important;
  border: none !important;
  filter: none !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, transparent, rgba(205,127,50,0.5), rgba(255,215,0,0.7), rgba(205,127,50,0.5), transparent) !important;
  opacity: 0 !important;
  transition: opacity 0.35s ease !important;
}
main.page .card:hover::after {
  opacity: 1 !important;
}