/* =============================================
   naamtaan1008 · 平和日常博客
   咖啡馆典雅 × 摇滚反叛
   静态品牌首页 + 磁贴文章 + 弹窗详情
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Sans+SC:wght@300;400;500;700&family=Fira+Code:wght@400;600&display=swap');

:root {
  --theme-bg-deep: #1a1410;
  --theme-bg-main: #231e19;
  --theme-bg-card: #2a2420;
  --theme-bg-elevated: #332d28;
  --theme-bg-hover: #3d3530;
  --theme-text-primary: #e8ddd0;
  --theme-text-secondary: #b8a99a;
  --theme-text-muted: #8a7e72;
  --theme-border-subtle: #3a322c;
  --theme-border-accent: #6b4f30;
  --theme-accent: #d4a857;
  --theme-accent-alt: #c0392b;
  --theme-accent-hover: #e74c3c;
  --theme-vinyl-bg: radial-gradient(circle at 50% 50%, #1a1a1a 35%, #8b1a1a 36%, #8b1a1a 40%, #1a1a1a 41%, #1a1a1a 100%);
  --theme-vinyl-shadow: 0 0 30px rgba(139,26,26,0.3);
  --theme-bg-gradient: radial-gradient(ellipse at 20% 50%, rgba(139,26,26,0.08) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(212,168,87,0.05) 0%, transparent 50%), radial-gradient(ellipse at 50% 80%, rgba(30,30,30,0.3) 0%, transparent 50%);
  --theme-floor-badge: linear-gradient(135deg, #d4a857, #c49a4a);
  --theme-floor-badge-color: #1a1410;
  --theme-nav-bg: rgba(26,20,16,0.95);
  --theme-modal-backdrop: rgba(10,8,5,0.85);
  --font-display: 'Playfair Display', 'Noto Sans SC', serif;
  --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(212,168,87,0.15);
}

[data-theme="rock"] {
  /* 继承 :root 的默认值 */
}

[data-theme="coffee"] {
  --theme-bg-deep: #1c1510;
  --theme-bg-main: #2a221c;
  --theme-bg-card: #3a3128;
  --theme-bg-elevated: #4a3f34;
  --theme-bg-hover: #5a4e40;
  --theme-text-primary: #f0e6d8;
  --theme-text-secondary: #d4c4b0;
  --theme-text-muted: #a89880;
  --theme-border-subtle: #4a3f34;
  --theme-border-accent: #8b7355;
  --theme-accent: #c9a84c;
  --theme-accent-alt: #8b5e3c;
  --theme-accent-hover: #a67c52;
  --theme-vinyl-bg: radial-gradient(circle at 50% 50%, #3a2a1a 35%, #6b4a2a 36%, #6b4a2a 40%, #3a2a1a 41%, #3a2a1a 100%);
  --theme-vinyl-shadow: 0 0 30px rgba(107,74,42,0.3);
  --theme-bg-gradient: radial-gradient(ellipse at 20% 50%, rgba(139,94,60,0.08) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.06) 0%, transparent 50%), radial-gradient(ellipse at 50% 80%, rgba(60,50,40,0.3) 0%, transparent 50%);
  --theme-floor-badge: linear-gradient(135deg, #c9a84c, #b89440);
  --theme-floor-badge-color: #1c1510;
  --theme-nav-bg: rgba(28,21,16,0.95);
  --theme-modal-backdrop: rgba(18,14,10,0.88);
}

body {
  font-family: var(--font-body);
  background: var(--theme-bg-deep);
  color: var(--theme-text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: var(--theme-bg-gradient);
  pointer-events: none;
  z-index: 0;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--theme-bg-deep); }
::-webkit-scrollbar-thumb { background: var(--theme-border-accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--theme-accent); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; }
h1 { font-size: 3rem; line-height: 1.2; }
h1 .subtitle { display: block; font-size: 1.1rem; font-weight: 400; font-style: italic; color: var(--theme-text-secondary); margin-top: 0.5rem; letter-spacing: 0.1em; }
h2 { font-size: 1.8rem; color: var(--theme-accent); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; color: var(--theme-text-primary); margin-bottom: 0.8rem; }
h4 { font-size: 1.1rem; color: var(--theme-text-primary); margin-bottom: 0.3rem; }
p { margin-bottom: 1rem; color: var(--theme-text-secondary); }
a { color: var(--theme-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cream); }
blockquote { border-left: 3px solid var(--theme-accent); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--theme-bg-elevated); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--theme-text-primary); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--theme-text-secondary); }
li { margin-bottom: 0.5rem; }
code { font-family: var(--font-mono); background: var(--theme-bg-elevated); padding: 0.2em 0.4em; border-radius: var(--radius-sm); font-size: 0.9em; color: var(--theme-accent); }
strong { color: var(--theme-text-primary); }

.container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }

/* ==================== PAGE VISIBILITY ==================== */
.page { display: none; animation: fadeIn 0.35s ease; }
.page.visible { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ==================== HEADER ==================== */
header { position: relative; padding: 4rem 0 2rem; text-align: center; overflow: hidden; }
header::after { content: ''; display: block; width: 60px; height: 2px; background: linear-gradient(90deg, transparent, var(--theme-accent), transparent); margin: 2rem auto 0; }
.header-desc { color: var(--theme-text-muted); font-size: 0.95rem; margin-top: 0.5rem; letter-spacing: 0.2em; text-transform: uppercase; }

.vinyl-art {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--theme-vinyl-bg);
  margin: 0 auto 2rem; position: relative;
  box-shadow: var(--theme-vinyl-shadow);
  animation: spin 8s linear infinite;
}
.vinyl-art::after { content: ''; position: absolute; top:50%; left:50%; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; background: var(--theme-bg-card); border: 2px solid var(--theme-border-subtle); }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ==================== NAV ==================== */
nav { position: sticky; top: 0; z-index: 100; background: var(--theme-nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--theme-border-subtle); padding: 0.8rem 0; }
nav .container { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 0; list-style: none; padding: 0; margin: 0; align-items: center; }
.nav-links a { color: var(--theme-text-muted); font-size: 0.9rem; border: none; padding: 0.5rem 1rem; transition: all 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 50%; width: 0; height: 2px; background: var(--theme-accent); transition: all 0.3s; transform: translateX(-50%); }
.nav-links a:hover, .nav-links a.active { color: var(--theme-text-primary); }
.nav-links a.active::after { width: 60%; }
.nav-brand { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--theme-accent); border: none; }

/* Hamburger button — hidden on desktop, visible on mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--theme-text-muted);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
/* Hamburger → X animation */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hamburger → X animation */
.nav-shop-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem 1rem !important;
  background: var(--theme-accent);
  color: var(--theme-bg-deep) !important;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-left: 0.4rem;
  transition: all 0.25s ease !important;
  border: none !important;
}
.nav-shop-btn::after { display: none !important; }
.nav-shop-btn:hover {
  background: #e8b84a !important;
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(212,168,87,0.3);
}
.nav-shop-btn.active {
  background: #e8b84a !important;
  color: var(--theme-bg-deep) !important;
  box-shadow: 0 0 20px rgba(212,168,87,0.35);
}

/* ==================== THEME SWITCHER ==================== */
.theme-switcher {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--theme-bg-elevated);
  border: 1px solid var(--theme-border-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}
.theme-switcher:hover {
  border-color: var(--theme-accent);
  transform: rotate(30deg);
  box-shadow: 0 0 12px rgba(212,168,87,0.2);
}
.theme-switcher .ts-icon {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

/* Theme switch as nav item — hidden on desktop, shown in mobile menu */
.nav-theme-item { display: none; }
.theme-switcher-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 1px solid var(--theme-border-subtle);
  color: var(--theme-text-muted);
  font-size: 1.05rem;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.theme-switcher-inline:hover {
  background: var(--theme-bg-elevated);
  color: var(--theme-accent);
}

/* ==================== FLOOR SYSTEM ==================== */
.floor { margin: 1rem 0 3rem; }
.floor-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--theme-border-subtle); }
.floor-header h2 { margin: 0; font-size: 1.6rem; }
.floor-badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--theme-floor-badge); color: var(--theme-floor-badge-color); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; border-radius: 10px; flex-shrink: 0; }
.floor-body { display: flex; flex-direction: column; gap: 1.2rem; }
.floor-card { background: var(--theme-bg-card); border: 1px solid var(--theme-border-subtle); border-radius: var(--radius-md); padding: 1.8rem 2rem; transition: border-color 0.2s; }
.floor-card:hover { border-color: var(--theme-border-accent); }

/* ==================== VISITOR COUNT ==================== */
.visitor-count {
  text-align: center;
  font-size: 0.72rem;
  color: var(--theme-text-muted);
  opacity: 0.45;
  padding: 1.2rem 0 0.3rem;
  letter-spacing: 0.05em;
  user-select: none;
}

/* ==================== TEAM ==================== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; padding: 1.5rem !important; }
.team-member { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; background: var(--theme-bg-elevated); border: 1px solid var(--theme-border-subtle); border-radius: var(--radius-md); transition: all 0.2s; }
.team-member:hover { border-color: var(--theme-border-accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.member-avatar { font-size: 2rem; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--theme-bg-main); border-radius: 12px; flex-shrink: 0; border: 1px solid var(--theme-border-subtle); }
.member-info h4 { font-size: 1rem; margin-bottom: 0.15rem; font-weight: 600; color: var(--theme-text-primary); }
.member-role { font-size: 0.75rem; color: var(--theme-accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.member-desc { font-size: 0.85rem; color: var(--theme-text-secondary); line-height: 1.6; margin: 0; }

/* ==================== CONTACT ==================== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.contact-card { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 1.5rem; background: var(--theme-bg-elevated); border: 1px solid var(--theme-border-subtle); border-radius: var(--radius-md); text-align: center; transition: all 0.3s; color: var(--theme-text-secondary); text-decoration: none; border-bottom: none; }
.contact-card:hover { border-color: var(--theme-border-accent); transform: translateY(-3px); box-shadow: var(--shadow-glow); color: var(--theme-text-primary); }
.contact-card.static:hover { transform: none; box-shadow: none; border-color: var(--theme-border-subtle); color: var(--theme-text-secondary); }
.cc-icon { font-size: 2rem; }
.cc-label { font-size: 0.75rem; color: var(--theme-text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.cc-val { font-size: 0.9rem; font-weight: 500; }

/* ==================== CONTACT FORM ==================== */
.contact-form { max-width: 500px; margin: 0 auto; padding: 1.5rem; background: var(--theme-bg-card); border: 1px solid var(--theme-border-subtle); border-radius: var(--radius-md); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8rem; color: var(--theme-text-muted); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.1em; }
.form-group input, .form-group textarea { width: 100%; padding: 0.65rem 0.9rem; background: var(--theme-bg-elevated); border: 1px solid var(--theme-border-subtle); border-radius: var(--radius-sm); color: var(--theme-text-primary); font-family: var(--font-body); font-size: 0.95rem; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--theme-accent); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn { padding: 0.6rem 1.2rem; border: none; border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-body); font-size: 0.9rem; transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.4rem; }
.btn-primary { background: var(--theme-accent); color: var(--theme-bg-deep); width: 100%; justify-content: center; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.btn-primary:hover { background: var(--theme-accent-hover, #c49a4a); transform: translateY(-1px); }
.response-box { margin-top: 1rem; padding: 0.8rem; border-radius: var(--radius-sm); font-size: 0.9rem; display: none; }
.response-box.visible { display: block; }
.response-box.success { background: rgba(39,174,96,0.12); color: #2ecc71; border: 1px solid rgba(39,174,96,0.25); }
.response-box.error { background: rgba(192,57,43,0.12); color: var(--theme-accent-alt); border: 1px solid rgba(192,57,43,0.25); }

/* ==================== FOOTER ==================== */
footer { text-align: center; padding: 3rem 0; border-top: 1px solid var(--theme-border-subtle); margin-top: 3rem; }
footer .copyright { font-size: 0.8rem; color: var(--theme-text-muted); opacity: 0.6; margin: 0; }
footer .beian { font-size: 0.75rem; color: var(--theme-text-muted); opacity: 0.5; margin: 0.5rem 0 0 0; }
footer .beian a { color: inherit; text-decoration: none; border-bottom: 1px dotted transparent; transition: color 0.2s, border-color 0.2s, opacity 0.2s; }
footer .beian a:hover { color: var(--theme-accent); border-bottom-color: var(--theme-accent); opacity: 1; }
footer .admin-entry { margin-top: 0.5rem; font-size: 0.75rem; opacity: 0.4; transition: opacity 0.2s; }
footer .admin-entry:hover { opacity: 1; }
footer .admin-entry a { color: var(--theme-text-muted); border: none; }

/* ==================== BROWSER CONTROLS ==================== */
.browser-search { margin-bottom: 0.6rem; }
.browser-search input { width: 100%; padding: 0.5rem 0.8rem; background: var(--theme-bg-elevated); border: 1px solid var(--theme-border-subtle); border-radius: var(--radius-sm); color: var(--theme-text-primary); font-family: var(--font-body); font-size: 0.9rem; transition: border-color 0.2s; }
.browser-search input:focus { outline: none; border-color: var(--theme-accent); }
.browser-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-btn { padding: 0.3rem 0.8rem; background: var(--theme-bg-elevated); border: 1px solid var(--theme-border-subtle); border-radius: 20px; color: var(--theme-text-muted); cursor: pointer; font-family: var(--font-body); font-size: 0.78rem; transition: all 0.15s; }
.filter-btn:hover { border-color: var(--theme-border-accent); color: var(--theme-text-secondary); }
.filter-btn.active { background: var(--theme-accent); color: var(--theme-bg-deep); border-color: var(--theme-accent); font-weight: 600; }

/* ==================== TILE GRID ==================== */
.browser-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.8rem; }
.tile-loading { grid-column: 1 / -1; text-align: center; padding: 3rem; color: var(--theme-text-muted); }

/* Tile cards */
.tile { display: flex; flex-direction: column; padding: 1.2rem; border-radius: var(--radius-md); cursor: pointer; position: relative; overflow: hidden; transition: all 0.25s cubic-bezier(0.4,0,0.2,1); min-height: 140px; border: 1px solid transparent; }
.tile::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: rgba(255,255,255,0.15); transition: height 0.2s; }
.tile:hover { transform: scale(1.03); box-shadow: 0 8px 25px rgba(0,0,0,0.4); border-color: rgba(255,255,255,0.1); }
.tile:hover::before { height: 100%; }
.tile .tile-category { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.6); margin-bottom: auto; position: relative; z-index: 1; }
.tile .tile-title { font-size: 1rem; font-weight: 600; color: white; line-height: 1.4; margin: 0.4rem 0; position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile .tile-summary { font-size: 0.78rem; color: rgba(255,255,255,0.65); position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: auto; }
.tile .tile-date { font-size: 0.7rem; color: rgba(255,255,255,0.45); margin-top: 0.5rem; position: relative; z-index: 1; }
.tile .tile-icon { position: absolute; bottom: 1rem; right: 1rem; font-size: 2rem; opacity: 0.2; z-index: 0; }
.tile-color-0 { background: linear-gradient(135deg, #2c3e50, #34495e); }
.tile-color-1 { background: linear-gradient(135deg, #6d3a3a, #8b4545); }
.tile-color-2 { background: linear-gradient(135deg, #2d5a3a, #3a7a4a); }
.tile-color-3 { background: linear-gradient(135deg, #3a4a5a, #4a6a8a); }
.tile-color-4 { background: linear-gradient(135deg, #6b3a1a, #8a4a2a); }
.tile-color-5 { background: linear-gradient(135deg, #3a2a5a, #5a3a8a); }
.tile-color-6 { background: linear-gradient(135deg, #1a4a4a, #2a6a6a); }
.tile-color-7 { background: linear-gradient(135deg, #4a3a2a, #6a4a3a); }

/* ==================== ARTICLE MODAL ==================== */
.article-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000; display: none; align-items: center; justify-content: center; }
.article-modal.visible { display: flex; }
.modal-backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--theme-modal-backdrop); backdrop-filter: blur(4px); }
.modal-content { position: relative; width: 90vw; max-width: 800px; max-height: 85vh; background: var(--theme-bg-card); border: 1px solid var(--theme-border-accent); border-radius: var(--radius-lg); overflow-y: auto; padding: 2.5rem; box-shadow: var(--shadow-lg); animation: fadeIn 0.25s ease; }
.modal-close { position: sticky; float: right; top: 0; width: 32px; height: 32px; background: var(--theme-bg-elevated); border: 1px solid var(--theme-border-subtle); border-radius: 50%; color: var(--theme-text-muted); cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 1; }
.modal-close:hover { background: var(--theme-accent-alt); color: white; border-color: var(--theme-accent-alt); }
.modal-title { font-size: 2rem; margin-bottom: 0.5rem; padding-right: 2rem; }
.modal-meta { color: var(--theme-text-muted); font-size: 0.9rem; margin-bottom: 2rem; display: flex; gap: 1rem; }
.modal-body { color: var(--theme-text-secondary); line-height: 1.9; font-size: 1.05rem; }
.modal-body p { margin-bottom: 1.2rem; }
.modal-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 1rem 0; }
.modal-body figure { margin: 1.5rem 0; text-align: center; }
.modal-body figure img { margin: 0 auto; }
.modal-body figcaption { font-size: 0.85rem; color: var(--theme-text-muted); margin-top: 0.3rem; font-style: italic; }

/* ==================== SHOP / PRODUCTS PAGE ==================== */
.shop-disclaimer {
  background: linear-gradient(135deg, rgba(192,57,43,0.15), rgba(212,168,87,0.1));
  border: 1px solid rgba(192,57,43,0.35);
  border-left: 4px solid var(--theme-accent-alt);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--theme-accent);
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 0.02em;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.product-card {
  background: var(--theme-bg-card);
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--theme-border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-image {
  width: 100%;
  height: 180px;
  background: var(--theme-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(transparent, var(--theme-bg-card));
}

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

.product-body {
  padding: 1.2rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--theme-accent);
  margin-bottom: 0.3rem;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--theme-text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--theme-text-secondary);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  flex: 1;
}

.product-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid var(--theme-border-subtle);
  margin-top: 0.5rem;
}

.product-price-tag {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--theme-accent);
  font-family: var(--font-display);
  margin-bottom: 0.4rem;
}

.product-tech-notice {
  font-size: 0.7rem;
  color: var(--theme-text-muted);
  opacity: 0.5;
  margin-top: 0.4rem;
  text-align: right;
  font-style: italic;
}

.product-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 1rem;
  background: var(--theme-accent);
  color: var(--theme-bg-deep) !important;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

.product-buy-btn:hover {
  background: #e8b84a;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(212,168,87,0.3);
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.shop-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.shop-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--theme-text-muted);
}

.shop-empty .shop-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ==================== HERO BANNER ==================== */
.hero-banner {
  position: relative;
  padding: 5rem 0 3rem;
  text-align: center;
  overflow: hidden;
  margin-bottom: 2rem;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 40%, rgba(212,168,87,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 60%, rgba(192,57,43,0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 30%, rgba(139,26,26,0.08) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes heroGlow {
  0% { transform: translate(0,0); }
  100% { transform: translate(2%,1%); }
}
.hero-banner .container { position: relative; z-index: 1; }
.hero-tagline {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--theme-accent), #e8c97a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--theme-text-secondary);
  font-style: italic;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  text-decoration: none;
}
.hero-btn.primary {
  background: var(--theme-accent);
  color: var(--theme-bg-deep);
  box-shadow: 0 4px 20px rgba(212,168,87,0.3);
}
.hero-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(212,168,87,0.4); }
.hero-btn.secondary {
  background: transparent;
  color: var(--theme-text-primary);
  border: 1px solid var(--theme-border-accent);
}
.hero-btn.secondary:hover { border-color: var(--theme-accent); background: rgba(212,168,87,0.1); }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--theme-border-subtle);
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--theme-accent);
}
.hero-stat-label {
  font-size: 0.7rem;
  color: var(--theme-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.2rem;
}
.construction-badge {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.4rem 1.2rem;
  background: rgba(212,168,87,0.1);
  border: 1px dashed var(--theme-accent);
  border-radius: 20px;
  color: var(--theme-accent);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  animation: pulse-construction 2s ease-in-out infinite;
}
@keyframes pulse-construction {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ==================== EVENTS PAGE ==================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
}
.event-card {
  display: flex;
  background: var(--theme-bg-card);
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
}
.event-card:hover {
  border-color: var(--theme-border-accent);
  transform: translateY(-3px);
}
.event-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: var(--theme-bg-elevated);
  min-width: 85px;
  border-right: 1px solid var(--theme-border-subtle);
}
.event-date-day {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--theme-accent);
  line-height: 1;
}
.event-date-month {
  font-size: 0.7rem;
  color: var(--theme-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}
.event-body {
  flex: 1;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
}
.event-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--theme-text-primary);
  margin-bottom: 0.3rem;
}
.event-venue {
  font-size: 0.8rem;
  color: var(--theme-text-secondary);
  margin-bottom: 0.2rem;
}
.event-time {
  font-size: 0.75rem;
  color: var(--theme-text-muted);
  margin-bottom: 0.5rem;
}
.event-desc {
  font-size: 0.8rem;
  color: var(--theme-text-secondary);
  line-height: 1.5;
  flex: 1;
}
.event-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.2em 0.6em;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.event-badge.upcoming { background: rgba(212,168,87,0.2); color: var(--theme-accent); }
.event-badge.ongoing { background: rgba(46,204,113,0.2); color: #2ecc71; }
.event-badge.past { background: rgba(180,180,180,0.15); color: var(--theme-text-muted); }

/* ==================== MUSIC PLAYER ==================== */
.music-player-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.music-player-loading,
.music-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--theme-text-muted);
}
.music-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.6; }
.music-empty-sub { font-size: 0.8rem; margin-top: 0.3rem; opacity: 0.4; }

/* --- 播放器主体 --- */
.music-player {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  background: var(--theme-bg-card);
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

/* --- 唱片视觉区 --- */
.music-visual {
  position: relative;
  width: 220px;
  height: 260px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-disc {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #1a1a1a 0%,
    #1a1a1a 28%,
    #2a2a2a 29%,
    #1a1a1a 30%,
    #1a1a1a 32%,
    #2a2a2a 33%,
    #1a1a1a 34%,
    #1a1a1a 36%,
    #2a2a2a 37%,
    #1a1a1a 38%,
    #1a1a1a 100%
  );
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.05),
    0 0 0 6px #111,
    0 0 0 8px rgba(255,255,255,0.04),
    0 0 0 12px #0d0d0d,
    0 8px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: none;
}
.vinyl-disc.spinning {
  animation: vinylSpin 2s linear infinite;
}
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.vinyl-groove {
  display: none; /* keep radial gradient for realism instead */
}
.vinyl-label {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a857, #8b4545);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  overflow: hidden;
  z-index: 1;
}
.vinyl-label-title {
  font-size: 0.5rem;
  font-weight: 700;
  color: #1a1410;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 60px;
}
.vinyl-label-artist {
  font-size: 0.4rem;
  color: rgba(26,20,16,0.7);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 60px;
}

/* --- 唱臂 --- */
.tonearm {
  position: absolute;
  top: 10px;
  right: 5px;
  width: 8px;
  height: 100px;
  background: linear-gradient(to bottom, #888, #555, #333);
  border-radius: 4px;
  transform-origin: top center;
  transform: rotate(25deg);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -2px 2px 6px rgba(0,0,0,0.4);
}
.tonearm::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -6px;
  width: 20px;
  height: 8px;
  background: #666;
  border-radius: 2px;
  transform: rotate(-5deg);
}
.tonearm.playing {
  transform: rotate(15deg);
}

/* --- 控制信息区 --- */
.music-controls-area {
  flex: 1;
  min-width: 0;
}
.music-meta { margin-bottom: 1.5rem; }
.music-meta-platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.music-platform-badge {
  font-size: 0.75rem;
  color: var(--theme-text-muted);
  background: var(--theme-bg-elevated);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}
.music-track-count {
  font-size: 0.7rem;
  color: var(--theme-text-muted);
  opacity: 0.6;
}
.music-player-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--theme-text-primary);
  margin: 0 0 0.2rem 0;
  line-height: 1.3;
}
.music-player-artist {
  font-size: 0.9rem;
  color: var(--theme-text-secondary);
  margin: 0;
}

/* --- 进度条 --- */
.music-progress-container {
  margin-bottom: 1.5rem;
}
.music-progress-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--theme-bg-elevated);
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 0.4rem;
}
.music-progress-bar:hover {
  height: 8px;
  border-radius: 4px;
}
.music-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--theme-accent), #e8b84a);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}
.music-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background: var(--theme-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(212,168,87,0.4);
  opacity: 0;
  transition: opacity 0.15s;
}
.music-progress-bar:hover .music-progress-thumb { opacity: 1; }
.music-time-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--theme-text-muted);
  font-variant-numeric: tabular-nums;
}

/* --- 控制按钮 --- */
.music-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.music-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--theme-border-subtle);
  background: var(--theme-bg-elevated);
  color: var(--theme-text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
  text-decoration: none;
}
.music-btn:hover {
  background: var(--theme-bg-hover);
  border-color: var(--theme-border-accent);
  transform: translateY(-1px);
}
.music-btn-prev,
.music-btn-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.music-btn-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.4rem;
  background: var(--theme-accent);
  color: var(--theme-bg-deep);
  border-color: var(--theme-accent);
}
.music-btn-play:hover {
  background: #e8b84a;
  border-color: #e8b84a;
  box-shadow: 0 0 16px rgba(212,168,87,0.3);
}
.music-btn-external {
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border-color: var(--theme-accent);
  color: var(--theme-accent);
  font-weight: 600;
}
.music-btn-external:hover {
  background: var(--theme-accent);
  color: var(--theme-bg-deep);
}

/* --- 曲目列表 --- */
.music-tracklist {
  background: var(--theme-bg-card);
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.music-tracklist-title {
  font-size: 0.85rem;
  color: var(--theme-text-muted);
  margin: 0 0 1rem 0;
  font-weight: 500;
}
.music-track-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.music-track-item:hover {
  background: var(--theme-bg-elevated);
  border-color: var(--theme-border-subtle);
}
.music-track-item.active {
  background: rgba(212,168,87,0.08);
  border-color: var(--theme-border-accent);
}
.music-track-num {
  font-size: 0.75rem;
  color: var(--theme-text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 24px;
  opacity: 0.5;
}
.music-track-item.active .music-track-num {
  color: var(--theme-accent);
  opacity: 1;
}
.music-track-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.music-track-name {
  font-size: 0.85rem;
  color: var(--theme-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-track-artist {
  font-size: 0.7rem;
  color: var(--theme-text-muted);
}
.music-track-platform {
  font-size: 1rem;
  opacity: 0.5;
}

/* --- 响应式 --- */
@media (max-width: 768px) {
  .music-player {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }
  .music-visual {
    width: 180px;
    height: 220px;
  }
  .vinyl-disc {
    width: 160px;
    height: 160px;
  }
  .vinyl-label {
    width: 56px;
    height: 56px;
  }
  .tonearm { height: 80px; }
  .music-player-title { font-size: 1.15rem; }
  .music-controls-area { width: 100%; }
}

/* ==================== SOCIAL BAR / FOOTER WALL ==================== */
.social-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}
.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--theme-text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.2s;
  border: none;
}
.social-link:hover { color: var(--theme-accent); transform: translateY(-2px); border: none; }
.social-link .social-icon { font-size: 1.6rem; }
.social-link .social-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ==================== STUDIO GEAR ==================== */
.gear-category {
  margin-bottom: 1.2rem;
}
.gear-category h4 {
  font-size: 0.85rem;
  color: var(--theme-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.gear-category ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.3rem;
}
.gear-category li {
  font-size: 0.85rem;
  color: var(--theme-text-secondary);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--theme-border-subtle);
}

/* ==================== RESPONSIVE additions ==================== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h1 .subtitle { font-size: 0.9rem; }

  /* Nav — mobile hamburger: toggle display */
  nav { padding: 0.6rem 0; }
  nav .container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    order: 3;
    padding: 0;
    margin-top: 0.5rem;
    background: var(--theme-bg-card);
    border: 1px solid var(--theme-border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    margin: 0;
  }
  .nav-links a {
    display: block;
    font-size: 1.05rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--theme-border-subtle);
    border-radius: 0;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover,
  .nav-links a.active {
    background: var(--theme-bg-elevated);
    color: var(--theme-accent);
  }
  .nav-shop-btn {
    margin: 0.75rem 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    padding: 0.65rem 0 !important;
    display: block;
    border-radius: 8px;
  }

  /* Theme switcher — moved into mobile nav menu; desktop one hidden on mobile */
  .theme-switcher { display: none; }
  .nav-theme-item { display: block; }

  .floor-card { padding: 1.2rem; }
  .team-grid { grid-template-columns: 1fr; }
  .browser-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .modal-content { padding: 1.5rem; width: 95vw; }
  .modal-title { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .browser-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .tile { min-height: 100px; padding: 0.8rem; }
  .tile .tile-title { font-size: 0.85rem; }
  .tile .tile-summary { display: none; }
}