:root {
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent-pink: #ec4899;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --border: #e2e8f0;
  --border-focus: #c7d2fe;
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-soft: linear-gradient(135deg, #eef2ff 0%, #faf5ff 50%, #fdf2f8 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 20px 30px -10px rgba(99, 102, 241, 0.15), 0 8px 12px -4px rgba(0, 0, 0, 0.04);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Announcement Bar */
.top-notice {
  background: var(--gradient-brand);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 50;
}
.top-notice a {
  color: #fff;
  text-decoration: underline;
  margin-left: 8px;
  font-weight: 700;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}
.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: #eef2ff;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e0e7ff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.btn-shop-nav {
  background: var(--gradient-brand);
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-shop-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-main);
}

/* Hero Section */
.hero-section {
  background: var(--gradient-soft);
  position: relative;
  overflow: hidden;
  padding: 70px 24px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero-title span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.45);
}
.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Feature stats pills */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}
.stat-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.stat-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

/* Main Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}
.section-header {
  margin-bottom: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.section-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover {
  text-decoration: underline;
}

/* Card Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Store Product Cards */
.card-product {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-focus);
}
.card-product-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-muted);
}
.tag-hot {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fee2e2;
}
.tag-pro {
  background: #eef2ff;
  color: var(--primary);
  border: 1px solid #e0e7ff;
}
.product-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.product-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}
.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}
.product-features {
  list-style: none;
  margin-bottom: 20px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}
.product-features li {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-features li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: #e11d48;
}
.btn-buy {
  background: var(--gradient-brand);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.35);
}

/* Interactive Prompt Generator Box */
.tool-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 60px;
}
.tool-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tool-tab-btn {
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tool-tab-btn.active, .tool-tab-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.prompt-output-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  margin-top: 16px;
}
.prompt-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.925rem;
  color: #334155;
  white-space: pre-wrap;
  line-height: 1.6;
}
.btn-copy {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.btn-copy:hover {
  background: #f8fafc;
  border-color: var(--primary);
}

/* Article Cards */
.card-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card-article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}
.article-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}
.article-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.4;
}
.article-title a {
  color: inherit;
  text-decoration: none;
}
.article-title a:hover {
  color: var(--primary);
}
.article-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}
.article-readmore {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Footer & Interlink Matrix */
.site-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 50px 24px 80px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 340px;
}
.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.825rem;
  color: var(--text-light);
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 100;
}
.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Mobile Bottom Fixed Nav */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 90;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}
.bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  gap: 3px;
}
.bottom-item svg {
  width: 20px;
  height: 20px;
}
.bottom-item.active, .bottom-item:hover {
  color: var(--primary);
}
.bottom-item.highlight {
  color: #ec4899;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-title { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .mobile-bottom-bar { display: grid; }
  .hero-section { padding: 40px 16px 36px; }
  .hero-title { font-size: 1.85rem; }
  .hero-desc { font-size: 0.95rem; }
  .container { padding: 36px 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { justify-content: center; text-align: center; }
  body { padding-bottom: 60px; }
}

/* ========================================================
   AI Style Gallery & Style Clone Engine Modal Styles
   ======================================================== */
.style-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}
.style-filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.style-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.style-filter-btn.active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Style Cards Grid */
.style-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}
.style-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.style-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-focus);
}
.style-card-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #0f172a;
}
.style-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.style-card:hover .style-card-img-wrap img {
  transform: scale(1.06);
}
.style-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.style-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.style-card:hover .style-hover-overlay {
  opacity: 1;
}
.btn-hover-clone {
  background: #ffffff;
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.style-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.style-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}
.style-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}
.style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.style-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.btn-style-action {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-style-action:hover {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
}

/* Modal Popup Engine */
.style-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.style-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.style-modal-dialog {
  background: #ffffff;
  border-radius: 20px;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  z-index: 10;
  transition: all 0.2s;
}
.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.modal-col-left {
  background: #0f172a;
  color: #ffffff;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.modal-img-wrap {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-col-right {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}

/* Modal Form Controls */
.modal-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.subject-input-box {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}
.subject-input-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.subject-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 20px;
}
.subject-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}
.subject-chip:hover {
  background: #e0e7ff;
  border-color: #c7d2fe;
  color: var(--primary);
}

.ratio-selector-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.ratio-btn {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.ratio-btn.active {
  border-color: var(--primary);
  background: #eef2ff;
  color: var(--primary);
}

.sref-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.live-prompt-box {
  background: #0f172a;
  color: #38bdf8;
  padding: 16px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  max-height: 140px;
  overflow-y: auto;
  word-break: break-all;
  margin-bottom: 20px;
  border: 1px solid #334155;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-copy-huge {
  width: 100%;
  padding: 14px;
  background: var(--gradient-brand);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-copy-huge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}
.btn-secondary-modal {
  width: 100%;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.btn-secondary-modal:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

@media (max-width: 820px) {
  .style-modal-dialog {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }
  .modal-img-wrap {
    height: 200px;
  }
  .modal-col-left {
    padding: 20px;
  }
  .modal-col-right {
    padding: 20px;
  }
}

/* ========================================================
   Intelligent Bilingual Engine & Google Translate Reset
   ======================================================== */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
}

body {
  top: 0px !important;
  position: static !important;
}

.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}

#google_translate_element {
  display: none !important;
}

/* Modern Language Switcher Pill Button */
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.08);
  color: #475569;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
  user-select: none;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-left: 8px;
}
.lang-switch-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #8b5cf6;
  color: #8b5cf6;
  transform: translateY(-1px);
}
.lang-switch-btn .globe-icon {
  font-size: 0.95rem;
}



/* ========================================================
   MeiNavi Guides & Style Gallery Search and Category Styles
   ======================================================== */

.guide-controls-container {
  max-width: 860px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-search-wrapper {
  width: 100%;
}

.guide-search-input-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 9999px;
  padding: 8px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  position: relative;
}

.guide-search-input-box:focus-within {
  border-color: #6366f1;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.guide-search-icon {
  color: #6366f1;
  margin-right: 12px;
  flex-shrink: 0;
}

#guideSearchInput {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: #0f172a;
  background: transparent;
}

#guideSearchInput::placeholder {
  color: #94a3b8;
}

#guideSearchClear {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

#guideSearchClear:hover {
  color: #ef4444;
}

.guide-category-filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.gcat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 7px 16px;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  user-select: none;
}

.gcat-pill:hover {
  border-color: #6366f1;
  color: #6366f1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.gcat-pill.active {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.guide-filter-notice {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #334155;
}

.guide-filter-reset-btn {
  background: none;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  color: #475569;
  font-size: 0.78rem;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.guide-filter-reset-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.fade-in-article {
  animation: fadeInArt 0.25s ease-out;
}

@keyframes fadeInArt {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Gallery Search Box */
.gallery-search-container {
  max-width: 680px;
  margin: 0 auto 20px;
}

.gallery-search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 9999px;
  padding: 8px 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.2s;
}

.gallery-search-box:focus-within {
  border-color: #6366f1;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.15);
}

.gallery-search-icon {
  margin-right: 10px;
  flex-shrink: 0;
}

#gallerySearchInput {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.92rem;
  color: #1e293b;
  background: transparent;
}

#clearGallerySearch {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

#clearGallerySearch:hover {
  color: #ef4444;
}


/* ========================================================
   MeiNavi Native Bilingual & Zero-Misalignment Responsive Architecture
   ======================================================== */

/* Desktop & Laptop Navigation (> 768px) */
@media (min-width: 769px) {
  .header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 64px !important;
    height: auto !important;
    padding: 8px 0 !important;
    gap: 12px !important;
  }
  .main-nav {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
  }
  .nav-link {
    font-size: 0.9rem !important;
    white-space: nowrap !important;
  }
}

/* Tablet screens (769px - 1100px) */
@media (max-width: 1100px) and (min-width: 769px) {
  .main-nav {
    gap: 8px !important;
  }
  .nav-link {
    font-size: 0.82rem !important;
    padding: 4px 6px !important;
  }
  .btn-shop-nav {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
  }
}

/* Mobile screens (<= 768px): Hide desktop nav, keep mobile bar */
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
  }
}

/* Guide Cards & Responsive Badges (Never overlap titles) */
.guide-badge {
  display: inline-flex !important;
  align-items: center !important;
  position: static !important;
  margin-bottom: 14px !important;
  padding: 4px 14px !important;
  border-radius: 20px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
  line-height: 1.4 !important;
  max-width: 100% !important;
  white-space: normal !important;
  word-break: break-word !important;
}

html.lang-en body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

html.lang-en .main-nav {
  gap: 10px !important;
}
html.lang-en .nav-link {
  font-size: 0.84rem !important;
}

/* Card Heights & Grid alignment */
.guide-card, article[id^="art-"] {
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

/* Language Switcher Button for KR site */
.lang-switch-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  color: #1e293b !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  user-select: none !important;
}
.lang-switch-btn:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  border-color: #6366f1 !important;
  color: #6366f1 !important;
}
