@keyframes fadeUp {
  0% { 
    opacity: 0.85;                
    transform: translateY(8px) scale(0.98);  
  }
  100% { 
    opacity: 1;                   
    transform: translateY(0) scale(1);      
  }
}

@keyframes bounceSoft {
  0% { 
    opacity: 0.9;                
    transform: scale(0.96);      
  }
  100% { 
    opacity: 1;                   
    transform: scale(1.02);      
  }
}

@keyframes scrollLong {
  0% { 
    transform: translateX(0);     
  }
  50% { 
    transform: translateX(-20px); 
  }
  100% { 
    transform: translateX(0);     
  }
}

@keyframes pendulumJump {
0% { 
    transform: translateX(0px) scale(1);     
    opacity: 1;                              
  }

8% { 
    transform: translateX(-18px) scale(1.02);  
    opacity: 1; 
  }

22% { 
    transform: translateX(-18px) scale(1);    
    opacity: 1; 
  }

32% { 
    transform: translateX(0px) scale(1.02);    
    opacity: 1; 
  }

48% { 
    transform: translateX(0px) scale(1);       
    opacity: 1; 
  }

58% { 
    transform: translateX(18px) scale(1.02);   
    opacity: 1; 
  }

72% { 
    transform: translateX(18px) scale(1);      
    opacity: 1; 
  }

85% { 
    transform: translateX(0px) scale(1.02);    
    opacity: 1; 
  }

100% { 
    transform: translateX(0px) scale(1);       
    opacity: 1; 
  }
}

@keyframes scrollUp {
0% { 
    transform: translateY(0);                 
  }

100% { 
    transform: translateY(-50%);             
  }
}

@keyframes fadeIn {
from { 
    opacity: 0;                   
  }

to { 
    opacity: 1;                   
  }
}

@keyframes slideUp {
from { 
    transform: translateY(20px);  
    opacity: 0;                   
  }

to { 
    transform: translateY(0);      
    opacity: 1;                   
  }
}

:root {
  --bg-cream: #f7f2ea;
  --bg-warm: #f0e8db;
  --brown-dark: #2c1810;
  --brown-mid: #5a3e2b;
  --brown-light: #8B5A2B;
  --gold: #D4AF37;
  --gold-light: #f0d78c;
  --gold-dark: #b8962e;
  --accent: #b5673c;
  --accent-dark: #8B4513;
  --card-bg: #fffcf7;
  --shadow: rgba(139, 90, 43, 0.10);
  --shadow-heavy: rgba(139, 90, 43, 0.20);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'STSong', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-margin-top: 80px;
}

body {
  font-family: var(--font-serif);
  background: var(--bg-cream);
  color: var(--brown-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 16px rgba(139,90,43,0.08);
  z-index: 100;
  padding: 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: baseline;
  justify-content: center;
  text-decoration: none;
  gap: 1px;
  transition: all 0.6s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo h1 {
  font-size: 1.5rem !important;
  color: #8B4513 !important;
  font-weight: 600;
  letter-spacing: 2px;
  margin: 0;
  font-family: 'STKaiti', 'Kaiti SC', 'KaiTi', serif;
}

.logo .sub-title {
  font-size: 1.1rem;
  color: #D4AF37;
  font-weight: 400;
  letter-spacing: 1px;
}

.logo-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}

.logo-title h1 {
  font-size: 1.4rem;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0;
}

.logo-title .sub-title {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 1px;
}

.logo-line {
  width: 1px;
  height: 33px;
  background: var(--gold-light);
  margin: 0 8px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #f7f2ea;
  border: 1px solid rgba(181, 103, 60, 0.3);
  border-radius: 30px;
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
  transition: var(--transition);
  font-family: var(--font-sans);
}

.lang-btn:hover {
  border-color: var(--accent);
  background: #fff8f0;
  transform: translateY(-1px);
}

.lang-btn i:first-child {
  color: var(--gold);
}

.lang-btn i:last-child {
  font-size: 10px;
}

.language-switcher {
  position: relative;
  display: inline-block;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  width: 180px;
  max-height: 340px;
  overflow-y: auto;
  display: none;
  z-index: 50;
  padding: 6px;
  border: 1px solid rgba(212,175,55,0.15);
}

.lang-dropdown.show {
  display: block;
}

.lang-item {
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  border-radius: 8px;
  transition: var(--transition);
  color: var(--brown-mid);
}

.lang-item:hover {
  background: var(--bg-cream);
  color: var(--accent-dark);
}

.lang-item.active {
  background: rgba(212,175,55,0.12);
  color: var(--accent-dark);
  font-weight: 600;
}

.hero {
  margin-top: 70px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
  padding: 8px 0 10px;
  min-height: auto;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-text {
  text-align: center;
  margin-bottom: 2px;
}

.hero-text h2 {
  font-size: 0.85rem;
  color: var(--brown-dark);
  letter-spacing: 4px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: 1px;
}

.hero-text h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 10px auto 0;
}

.hero-text p {
  font-size: 0.7rem;
  color: var(--brown-mid);
  margin-top: 10px;
  font-weight: 400;
  margin-bottom: 2px;
  line-height: 1.3;
}

.hero-search-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  position: relative;
}

.hero-search-box .search-inner {
  display: flex;
  align-items: center;
  border: 1px solid rgba(181, 103, 60, 0.25);
  border-radius: 50px;
  background: #f7f2ea;
  backdrop-filter: blur(4px);
  padding: 5px 5px 5px 22px;
  box-shadow: 0 4px 20px var(--shadow);
  max-width: 440px;
  width: 100%;
  transition: var(--transition);
  gap: 4px;
  justify-content: center;
}

.hero-search-box .search-inner:focus-within {
  box-shadow: 0 6px 28px rgba(181, 103, 60, 0.2);
  border-color: var(--accent);
}

.hero-search-box input {
  border: none;
  background: none;
  padding: 10px 14px;
  font-size: 15px;
  outline: none;
  flex: 1;
  color: var(--brown-dark);
  font-family: var(--font-sans);
}

.hero-search-box input::placeholder {
  color: #b0a090;
}

.hero-search-box button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.hero-search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(181, 103, 60, 0.3);
}

.hero-search-results {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 6px);
  width: 440px;
  max-width: 90vw;
  background: #f7f2ea;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 200;
  border: 1px solid rgba(212,175,55,0.12);
}

.hero-search-results.show {
  display: block;
}

.hero-search-results .search-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(240,235,228,0.6);
  transition: var(--transition);
}

.hero-search-results .search-item:hover {
  background: #f7f2ea;
}

.hero-search-results .search-item:last-child {
  border-bottom: none;
}

.big-screen {
  margin: 0 0 20px 0;
}

.smart-frame-wrap {
  width: 100%;
  background: linear-gradient(135deg, #f0e8db, #e8dcc8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 0px solid rgba(240, 215, 140, 0.7);
  box-shadow: 0px 30px var(--shadow), inset 0 1px 0 rgba(247, 242, 234, 0.9);
  transition: var(--transition);
}

.smart-frame-wrap:hover {
  box-shadow: 0px 20px var(--shadow-heavy);
}

.smart-frame-inner {
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
  cursor: pointer;
  overflow: hidden;
}

.smart-art {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #f7f2ea;
  opacity: 0;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.smart-art.show {
  opacity: 1;
}

.smart-art.vert {
  animation: fadeUp 6s ease-in-out infinite alternate;
}

.smart-art.small {
  max-height: 55vh;
  animation: bounceSoft 6s ease-in-out infinite alternate;
}

.smart-art.long-scroll {
  animation: scrollLong 12s linear infinite;
}

#frameDesc {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0;
  text-align: center;
  color: #fff;
  font-size: 17px;
  background: linear-gradient(transparent, #f7f2ea 60%, #f7f2ea 100%);
  pointer-events: none;
}

.pendulum-text {
  position: absolute;
  bottom: 0;
  right: 0;
  font-weight: 600;
  background: #f7f2ea;
  padding: 4px 22px;
  border-radius: 40px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  animation: pendulumJump 3.2s ease-in-out infinite;
  transform-origin: center center;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ff0000;
}

.pendulum-artist {
  font-weight: 600;
  color: #ff0000;
  margin-right: 6px;
  font-size: inherit;
}

.pendulum-bio {
  color: #ff0000;
  font-weight: 600;
  font-size: inherit;
}

#artInfoBadge {
  position: absolute;
  top: 0px;
  left: 14px;
  display: inline-block;
  background: #f7f2ea;
  padding: 9px 39px;
  border-radius: 40px;
  color: #ff0000 !important;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  animation: pendulumJump 3.2s ease-in-out infinite;
  transform-origin: center center;
  animation-fill-mode: forwards;
  backdrop-filter: blur(6px);
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

#artInfoBadge .badge-title {
  color: #ff0000 !important;
  font-weight: 600;
  margin-right: 8px;
}

#artInfoBadge span.badge-tag {
  color: #ff0000 !important;
  font-weight: 600;
}

#artInfoBadge .badge-size {
  color: #ff0000;
  font-weight: 600;
  font-size: inherit;
}

#checkoutBtn:hover {
  background: linear-gradient(135deg, #c87a4e, #a0522d);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
  border: 1px solid rgba(255, 3, 3, 0);
}

#checkoutBtn i {
  color: #fff;
  font-size: 18px;
}

/* 右上角分类导航 - 1×4横排缩略图 */
.cat-nav {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  z-index: 600 !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 3px !important;
  padding: 4px !important;
  background: rgba(247, 242, 234, 0.85) !important;
  border-radius: 10px !important;
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
  box-shadow: 0 2px 10px rgba(139, 90, 43, 0.08) !important;
}
.cat-item {
  width: 20px !important;
  height: 20px !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  border: 1px solid var(--gold) !important;
  transition: all 0.25s ease !important;
  opacity: 0.85 !important;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.3) !important;
}
.cat-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.cat-item:hover {
  opacity: 0.9 !important;
  border-color: rgba(212, 175, 55, 0.5) !important;
  transform: scale(1.08) !important;
}
.cat-item.active {
  opacity: 1 !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4) !important;
}

#magnifierLens {
  position: absolute;
  border: 2px solid rgba(212, 175, 55, 0.6);
  border-radius: 50%;
  display: none;
  pointer-events: none;
  z-index: 30;
  width: 160px;
  height: 160px;
  background-repeat: no-repeat;
  background-color: rgba(247, 242, 234, 0.1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(2px);
}

.teahouse {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.left-col {
  flex: 0 0 66%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.right-col {
  flex: 0 0 34%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.screen-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--shadow);
  padding: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  border: 1px solid rgba(212, 175, 55, 0.08);
}

.screen-box:hover {
  box-shadow: 0 12px 36px var(--shadow-heavy);
  transform: translateY(-2px);
}

.screen-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
  color: var(--brown-dark);
  letter-spacing: 1px;
}

.scroll-wall {
  height: 320px;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-sm);
  transition: box-shadow 0.3s ease;
  background: linear-gradient(180deg, rgba(247,242,234,0.5), transparent);
}

.scroll-track {
  display: flex;
  flex-direction: column;
  animation: scrollUp 35s linear infinite;
  transition: filter 0.3s ease;
}

.scroll-wall:hover .scroll-track {
  animation-play-state: paused;
  filter: brightness(1.02);
}

.scroll-item {
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}

.scroll-item img {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.scroll-item:hover img {
  transform: scale(1.06);
  box-shadow: 0 12px 36px var(--shadow-heavy);
  border-radius: 14px;
}

.scroll-item.active img {
  box-shadow: 0 0 0 3px var(--gold), 0 8px 24px var(--shadow-heavy);
}

#checkoutModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 24, 16, 0.5);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

#checkoutModal.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}

#checkoutModal .modal-content {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 380px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  animation: slideUp 0.25s ease;
}

#checkoutModal .modal-content img {
  max-width: 140px;
  max-height: 140px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px var(--shadow);
}

#checkoutModal .modal-content h4 {
  margin: 0 0 4px 0;
  color: var(--brown-dark);
  font-size: 1.1rem;
}

#checkoutModal .modal-content p {
  margin: 0 0 16px 0;
  color: var(--brown-light);
  font-size: 0.85rem;
}

#checkoutModal .modal-content .price {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
}

#checkoutModal .modal-content .modal-buttons {
  display: flex;
  gap: 12px;
}

#checkoutModal .modal-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-serif);
}

#checkoutModal .modal-btn.cancel {
  background: #e8e0d6;
  color: var(--brown-light);
}

#checkoutModal .modal-btn.cancel:hover {
  background: #ddd4c8;
}

#checkoutModal .modal-btn.confirm {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

#checkoutModal .modal-btn.confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(181, 103, 60, 0.3);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 400;
  box-shadow: 0 4px 16px rgba(181, 103, 60, 0.3);
  transition: var(--transition);
  font-size: 18px;
}

.back-to-top.show {
  display: block;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(181, 103, 60, 0.4);
}

footer {
  text-align: center;
  padding: 32px 20px 24px !important;
  color: var(--brown-light);
  font-size: 13px;
  border-top: 1px solid rgba(212,175,55,0.12) !important;
  background: linear-gradient(180deg, #f7f2ea 0%, #f0e8db 100%) !important;
  font-family: var(--font-sans, -apple-system, sans-serif) !important;
  line-height: 1.8 !important;
}

footer i.fa-palette {
  color: var(--gold);
}

footer a {
  color: var(--brown-light);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--accent);
}

#checkoutBtn {
  z-index: 600 !important;
  position: absolute !important;
  bottom: 0px !important;
  left: 0px !important;
  height: 20px !important;
  padding: 0 10px 0 8px !important;
  background: linear-gradient(135deg,#f7f2ea, #ff0000) !important;
  border: 2px solid rgba(255, 215, 150, 0.4) !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: all .3s !important;
  box-shadow: 0 4px 14px rgba(139, 69, 19, 0.3) !important;
}

#checkoutBtn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

#checkoutBtn .cart-text {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  white-space: nowrap;
}

#cartBadge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px #e8dcc8;
  border: 2px solid #fff;
  z-index: 10;
}

#heroSearchInput {
  height: 26px!important;
  font-size: 11px!important;
  padding: 0 6px!important;
  width: 180px!important;
}

#heroSearchBtn {
  height: 26px!important;
  font-size: 11px!important;
  padding: 0 8px!important;
  white-space: nowrap;
}

html {
  scroll-behavior: smooth;
}

header.scrolled {
  box-shadow: 0 4px 24px rgba(139,90,43,0.12);
}

.scroll-item::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(212,175,55,0.06);
  pointer-events: none;
  transition: all 0.3s ease;
}

.scroll-item:hover::after {
  box-shadow: 0 0 0 1.5px rgba(212,175,55,0.2), 0 8px 30px rgba(139,90,43,0.15);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 14px;
  color: var(--brown-dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-brand i {
  color: var(--gold);
  margin-right: 6px;
}

.footer-desc {
  font-size: 12px;
  color: var(--brown-light);
  margin-bottom: 16px;
  max-width: 500px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 12px;
  color: var(--brown-light);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  position: relative;
  padding: 2px 0;
}

.footer-links a:hover {
  color: var(--accent-dark);
  transform: translateX(2px);
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-social span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--brown-light);
  background: rgba(212,175,55,0.08);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(212,175,55,0.12);
  cursor: default;
}

.footer-social span i {
  color: var(--gold);
  font-size: 14px;
}

.footer-copyright {
  font-size: 11px;
  color: var(--brown-light);
  border-top: 1px solid rgba(212,175,55,0.1);
  padding-top: 14px;
  margin-top: 4px;
}

.footer-copyright a {
  color: var(--brown-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-copyright a:hover {
  color: var(--accent-dark);
}

@media (max-width: 1024px) {
  .teahouse {
    flex-direction: column;
  }

  .left-col, .right-col {
    flex: 1 1 100%;
  }

  .scroll-wall {
    height: 280px;
  }

  .smart-frame-inner {
    min-height: 350px;
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 8px 12px;
  }

  .header-center {
    flex-direction: row;
    gap: 8px;
    padding: 4px 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo {
    width: auto;
    height: auto;
  }

  .logo h1 {
    font-size: 1.2rem !important;
  }

  .logo-title h1 {
    font-size: 1.1rem;
  }

  .logo-title .sub-title {
    font-size: 0.75rem;
  }

  .hero {
    margin-top: 90px;
    padding: 12px 0;
  }

  .hero-text h2 {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .smart-frame-inner {
    min-height: 280px;
    padding: 16px 10px;
    width: 100%;
    max-width: 100%;
  }

  .smart-art {
    max-height: 55vh;
  }

  #frameDesc {
    padding: 10px 0;
    font-size: 15px;
  }

  .pendulum-text {
    padding: 4px 14px !important;
    font-size: 12px !important;
    animation-duration: 3s;
    white-space: normal !important;
    max-width: 90% !important;
    line-height: 1.4 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .scroll-wall {
    height: 200px;
  }

  .container {
    padding: 0 14px;
  }

  .big-screen {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .smart-frame-wrap {
    width: 100%;
    max-width: 100%;
  }

  .teahouse {
    flex-direction: column;
    gap: 12px;
  }

  .left-col,
    .right-col {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .screen-box {
    margin: 0;
  }

  .scroll-item img {
    width: 100%;
    height: auto;
  }

  #heroSearchInput {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-search-box {
    width: 100%;
    max-width: 100%;
  }

  .search-inner {
    width: 100%;
    gap: 4px;
  }

  header {
    padding: 0;
  }

  .logo .sub-title {
    font-size: 0.7rem !important;
  }

  .lang-btn {
    height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }

  .lang-btn span {
    max-width: 28px;
  }

  #checkoutModal .modal-content {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 20px;
    margin: 0;
    box-shadow: none;
  }

  #checkoutModal {
    background: rgba(44,24,16,0.6);
    backdrop-filter: blur(6px);
  }

  footer {
    padding: 24px 14px 18px !important;
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-links {
    gap: 8px 14px;
  }

  .footer-links a {
    font-size: 11px;
  }

  .footer-social span {
    font-size: 11px;
    padding: 3px 10px;
  }
}

@media (max-width: 560px) {
  .header-container {
    padding: 6px 10px;
  }

  .header-center {
    gap: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 0;
  }

  .logo {
    width: auto;
    height: auto;
  }

  .logo h1 {
    font-size: 1rem !important;
  }

  .logo-title h1 {
    font-size: 1rem;
  }

  .logo-title .sub-title {
    font-size: 0.7rem;
  }

  .lang-btn {
    height: 28px;
    padding: 0 10px;
    font-size: 11px;
    gap: 4px;
    min-width: 70px;
    justify-content: center;
  }

  .hero {
    margin-top: 82px;
    padding: 8px 0;
  }

  .hero-text h2 {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .hero-search-box .search-inner {
    padding: 4px 4px 4px 14px;
    max-width: 100%;
  }

  .hero-search-box input {
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero-search-box button {
    padding: 8px 14px;
    font-size: 12px;
  }

  .hero-search-results {
    width: calc(100vw - 28px);
    max-width: 400px;
  }

  .smart-frame-inner {
    min-height: 200px;
    padding: 12px;
  }

  .smart-art {
    max-height: 50vh;
  }

  #checkoutBtn i {
    font-size: 14px;
  }

  #artInfoBadge {
    top: 0px;
    left: 10px;
    padding: 4px 12px;
  }

  .screen-title {
    font-size: 12px;
    padding-left: 6px;
  }

  .scroll-wall {
    height: 180px;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    padding: 10px 12px;
    font-size: 14px;
  }

  footer {
    padding: 20px 12px;
    font-size: 11px;
  }

  .header-center .nav-actions {
  
  }

  .header-center .logo-title {
  
  }

  .logo-line {
    height: 18px;
    margin: 0 6px;
  }

  .lang-btn span {
    max-width: 45px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    width: 180px;
    max-height: 340px;
    overflow-y: auto;
    display: none;
    z-index: 50;
    padding: 6px;
    border: 1px solid rgba(212,175,55,0.15);
  }

  .lang-dropdown.show {
    display: block;
  }

  .lang-item {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--brown-mid);
  }

  .lang-item:hover {
    background: var(--bg-cream);
    color: var(--accent-dark);
  }

  .lang-item.active {
    background: rgba(212,175,55,0.12);
    color: var(--accent-dark);
    font-weight: 600;
  }

  .pendulum-text {
    font-size: 11px;
    padding: 3px 10px;
    white-space: normal;
    max-width: 85%;
    line-height: 1.3;
  }

  .teahouse {
    gap: 12px;
    margin-bottom: 24px;
  }

  .screen-box {
    padding: 10px 8px;
  }

  .scroll-item {
    padding: 4px 0;
  }

  .container {
    padding: 0 10px;
  }

  .left-col,
    .right-col {
    grid-template-columns: 1fr;
  }

  .logo .sub-title {
    font-size: 0.65rem !important;
  }
}

@media (max-width: 380px) {
  .hero-text h2 {
    font-size: 1rem;
  }

  .pendulum-text {
    animation-duration: 2.8s;
    font-size: 11px !important;
    padding: 3px 10px !important;
    max-width: 95% !important;
  }

  .scroll-wall {
    height: 160px;
  }

  .lang-btn span {
    max-width: 35px;
    font-size: 10px;
  }

  .lang-btn {
    min-width: 60px;
    padding: 0 8px;
  }
}

@media (max-width:560px) {
  #checkoutBtn {
    height: 54px!important;
    padding: 0 14px 0 10px!important;
    border-radius: 27px!important;
  }

  #checkoutBtn img {
    width: 26px;
    height: 26px;
  }

  #checkoutBtn .cart-text {
    font-size: 14px;
  }

  #cartBadge {
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    top: -4px;
    right: -4px;
  }
}

@media (max-width:480px) {
  #checkoutBtn {
    height: 20px!important;
    padding: 0 8px 0 6px!important;
    border-radius: 12px!important;
    gap: 3px!important;
  }

  #checkoutBtn img {
    width: 14px;
    height: 14px;
  }

  #checkoutBtn .cart-text {
    font-size: 9px;
  }

  #cartBadge {
    min-width: 12px;
    height: 12px;
    font-size: 7px;
    top: -4px;
    right: -4px;
    padding: 0 3px;
  }

  .cat-nav {
    gap: 2px!important;
    padding: 2px!important;
    top: 4px!important;
    right: 4px!important;
  }

  .cat-item {
    width: 20px!important;
    height: 20px!important;
    border-width: 1px!important;
    border-radius: 4px!important;
  }

  #checkoutBtn img {
}

@media (min-width: 561px) {
  .lang-dropdown {
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(44,24,16,0.14);
    border: 1px solid rgba(212,175,55,0.2);
    padding: 8px;
    background: rgba(255,255,255,0.98);
  }

  .lang-item {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
  }

  .lang-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212,175,55,0.06), transparent);
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 10px;
  }

  .lang-item:hover::before {
    opacity: 1;
  }

  .lang-item:hover {
    background: transparent;
    transform: translateX(3px);
  }

  .lang-item.active {
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
    border: 1px solid rgba(212,175,55,0.25);
    font-weight: 600;
  }
}
