/* ============================================
   OSHINAGAKI STYLESHEET
   科技風格品書網頁樣式表
   ============================================ */

/* ========================================
   IMPORTS & FONTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Noto+Sans+JP:wght@300;400;700&display=swap');


/* ========================================
   CSS VARIABLES (設計代幣)
   ======================================== */
:root {
  /* Primary Colors */
  --cyan: #00e5ff;
  --cyan-dim: #00b8d4;
  --cyan-glow: rgba(0, 229, 255, 0.4);
  --cyan-faint: rgba(0, 229, 255, 0.08);
  
  /* Background Colors */
  --bg: #020d18;
  --bg2: #040f1e;
  --panel: #061525;
  --panel2: #071a2e;
  
  /* Border Colors */
  --border: #0a4060;
  --border-bright: #1a8aaa;
  
  /* Text Colors */
  --text: #c8f0ff;
  --text-dim: #6fa8c0;
  
  /* Accent Colors */
  --accent: #ff6ac1;
  --yellow: #ffe066;
}


/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grid Scan Lines Effect */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 229, 255, 0.015) 2px,
      rgba(0, 229, 255, 0.015) 4px);
  pointer-events: none;
  z-index: 100;
}


/* ========================================
   LAYOUT - PAGE CONTAINER
   ======================================== */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
  position: relative;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}


/* ========================================
   DECORATIONS - CORNER BRACKETS
   ======================================== */
.corner-tl,
.corner-tr,
.corner-bl,
.corner-br {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.corner-tl {
  top: 8px;
  left: 8px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.corner-tr {
  top: 8px;
  right: 8px;
  border-top: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
}

.corner-bl {
  bottom: 8px;
  left: 8px;
  border-bottom: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.corner-br {
  bottom: 8px;
  right: 8px;
  border-bottom: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
}


/* ========================================
   HEADER SECTION
   ======================================== */
.header {
  display: grid;
  grid-template-columns: 160px 1fr 180px;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
  position: relative;
}

/* Header Left - Event Info */
.header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-label {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  color: var(--cyan-dim);
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-label::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0px, var(--cyan) 4px, transparent 4px, transparent 7px);
}

.date-box {
  border: 1px solid var(--border-bright);
  padding: 4px 10px;
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  color: var(--cyan);
  background: var(--panel);
  position: relative;
}

.date-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
}

.event-name-wrap {
  margin-top: 4px;
}

.event-name-label {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.event-name-boxes {
  display: flex;
  gap: 3px;
  margin-top: 3px;
}

.sq-box {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-bright);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--cyan);
}

/* Header Center - Title */
.title-center {
  text-align: center;
}

.title-main {
  font-size: clamp(52px, 9vw, 80px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, var(--cyan) 50%, #0077aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 20px var(--cyan));
  display: block;
}

.title-sub {
  font-family: 'Orbitron', monospace;
  font-style: italic;
  color: var(--cyan-dim);
  font-size: 18px;
  letter-spacing: 4px;
  margin-top: -4px;
  display: block;
}

/* Header Right - Booth Info */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.space-label {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.booth-box {
  border: 1px solid var(--border-bright);
  padding: 6px 14px;
  font-family: 'Orbitron', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
  background: var(--panel);
  text-align: center;
  position: relative;
  animation: pulse-glow 3s ease-in-out infinite;
}

.booth-box::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-bottom: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
}

.barcode {
  display: flex;
  gap: 1px;
  align-items: flex-end;
  height: 14px;
}

.barcode span {
  background: var(--cyan-dim);
  width: 2px;
  display: inline-block;
}


/* ========================================
   WELCOME MESSAGE
   ======================================== */
.welcome {
  text-align: center;
  font-size: 16px;
  color: var(--text-dim);
  margin: 8px 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.welcome::before {
  content: '▶';
  color: var(--cyan);
  font-size: 10px;
}


/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.section-tag {
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
  font-size: 20px;
  padding: 2px 10px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
}

.section-tag-sub {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  color: var(--cyan-dim);
  letter-spacing: 2px;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-bright), transparent);
}

.slash-deco {
  color: var(--border-bright);
  font-family: 'Orbitron', monospace;
  font-size: 14px;
}

.slash-deco-sm {
  color: var(--border-bright);
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  margin-left: 4px;
}


/* ========================================
   CARD COMPONENTS - BOOK CARD
   ======================================== */
.book-card {
  background: var(--panel2);
  border: 1px solid var(--border);
  padding: 12px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  position: relative;
}

.book-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--cyan);
}

/* New Release Variant */
.book-card.new-release {
  border-color: var(--border-bright);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.12), inset 0 0 30px rgba(0, 229, 255, 0.03);
}

.book-card.new-release::before {
  width: 70px;
}

/* Postcard Variant */
.book-card.postcard .sample-img {
  aspect-ratio: 1 / 1.66;
}

/* Sample Image Container */
.sample-img {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%);
  border: 1px solid var(--border-bright);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.42;
}

.book-card.new-release .sample-img {
  aspect-ratio: 1 / 1.42;
}

.sample-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}

.sample-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, var(--cyan) 0%, transparent 50%, var(--cyan) 100%) 1;
  pointer-events: none;
}

.sample-img::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
  pointer-events: none;
  z-index: 2;
}

/* Book Info */
.book-info {}

.book-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.book-title::before {
  content: '▶▶';
  color: var(--cyan);
  font-size: 10px;
  flex-shrink: 0;
}

.book-price {
  font-family: 'Orbitron', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
  text-align: right;
}

.book-price.large {
  font-size: 34px;
}

.book-meta {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.book-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 14px;
  color: var(--text-dim);
}

.book-meta-item::before {
  content: '□';
  color: var(--border-bright);
  flex-shrink: 0;
}

.book-meta-item span {
  flex: 1;
}


/* ========================================
   CARD COMPONENTS - GOODS CARD
   ======================================== */
.goods-card {
  background: var(--panel2);
  border: 1px solid var(--border);
  padding: 8px 10px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  position: relative;
}

.goods-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 1px;
  background: var(--cyan);
}

.goods-sample {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%);
  border: 1px solid var(--border-bright);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.goods-sample img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}

.goods-sample::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
  pointer-events: none;
  z-index: 2;
}

.goods-sample::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-bottom: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
  pointer-events: none;
  z-index: 2;
}

.goods-info {}

.goods-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}

.goods-name::before {
  content: '▶';
  color: var(--cyan);
  font-size: 9px;
  flex-shrink: 0;
}

.goods-price {
  font-family: 'Orbitron', monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan-glow);
  text-align: right;
  margin-top: 4px;
}


/* ========================================
   FREE SECTION
   ======================================== */
.free-section {
  margin-top: 14px;
  border: 1px solid var(--border);
  background: var(--panel2);
  padding: 10px 12px;
  position: relative;
}

.free-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 1px;
  background: var(--cyan);
}

.free-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.free-tag {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 16px;
  font-weight: 700;
  padding: 2px 8px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%);
}

.free-header-sub {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  color: var(--cyan-dim);
  letter-spacing: 2px;
}

.free-inner {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}

.free-sample {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%);
  border: 1px solid var(--border-bright);
  aspect-ratio: 1 / 1.42;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.free-sample img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}

.free-info-title {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.free-info-title::before {
  content: '▶';
  color: var(--cyan);
  font-size: 9px;
}

.free-meta {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.free-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 14px;
  color: var(--text-dim);
}

.free-meta-item::before {
  content: '□';
  color: var(--border-bright);
  flex-shrink: 0;
}

.free-meta-item span {
  flex: 1;
}


/* ========================================
   NOTES & WARNINGS
   ======================================== */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.notes-box {
  border: 1px solid var(--border);
  background: var(--panel2);
  padding: 10px 12px;
  position: relative;
}

.notes-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--cyan);
}

.notes-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.notes-tag {
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
  font-size: 16px;
  padding: 2px 8px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%);
}

.notes-tag-sub {
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  color: var(--cyan-dim);
  letter-spacing: 2px;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notes-item {
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.notes-item::before {
  content: '・';
  color: var(--cyan);
  flex-shrink: 0;
}

.warn-triangle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 36px;
  opacity: 0.15;
}

.warn-triangle::before {
  content: '▲';
  font-size: 36px;
  color: var(--cyan);
}


/* ========================================
   SNS SECTION
   ======================================== */
.sns-box {
  border: 1px solid var(--border);
  background: var(--panel2);
  padding: 10px 12px;
  position: relative;
}

.sns-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--cyan);
}

.sns-title {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  color: var(--cyan-dim);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.sns-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.sns-label {
  color: var(--text-dim);
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  flex-shrink: 0;
}

.sns-val {
  color: var(--cyan);
  flex: 1;
  font-size: 12px;
  word-break: break-all;
}


/* ========================================
   FOOTER
   ======================================== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.system-check {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  color: var(--cyan-dim);
  letter-spacing: 2px;
}

.footer-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
}

.footer-bars span {
  background: var(--border-bright);
  width: 3px;
}


/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes pulse-glow {
  0%,
  100% {
    text-shadow: 0 0 10px var(--cyan-glow);
  }

  50% {
    text-shadow: 0 0 20px var(--cyan-glow), 0 0 40px var(--cyan-glow);
  }
}

@keyframes scan {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100vh);
  }
}

.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.15;
  animation: scan 4s linear infinite;
  pointer-events: none;
  z-index: 99;
}


/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .header-left {
    order: 2;
  }

  .title-center {
    grid-column: 1 / -1;
    order: 1;
  }

  .header-right {
    order: 3;
    align-items: flex-start;
  }

  .title-main {
    font-size: 40px;
  }

  .event-name-boxes {
    flex-wrap: wrap;
  }

  .booth-box {
    font-size: 24px;
    padding: 4px 10px;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  /* 商品卡片改為單欄式：圖上字下 */
  .book-card,
  .goods-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sample-img,
  .goods-sample {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .book-info,
  .goods-info {
    text-align: center;
  }

  .book-price,
  .goods-price {
    text-align: center;
  }
}
