/*
Theme Name: SVG Shop
Description: A WordPress theme for an SVG / Cricut material shop — PNG/SVG/DXF/PDF downloads, a free SVG library, category tags, and built-in SEO.
Author: SVG Shop
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: svgshop
Tags: svg, material, download, cricut, float-layout, seo
*/

/* ==========================================================================
   Design Tokens
   Change the brand look by editing the values below.
   ========================================================================== */
:root {
  --brand: #7c3aed;
  --brand-strong: #6d28d9;
  --brand-soft: #f5f3ff;
  --brand-tint: #ede9fe;
  --brand-light: #a78bfa; /* 主色提亮，用于深色背景上的文字/强调 */
  --brand-gradient: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);

  /* Semantic */
  --success: #16a34a;
  --success-strong: #15803d;
  --success-soft: #f0fdf4;
  --warning: #f59e0b;
  --warning-soft: #fffbeb;
  --danger: #ef4444;
  --danger-strong: #dc2626;
  --danger-soft: #fef2f2;

  /* Neutral text */
  --text: #1f2937;
  --text-secondary: #374151;
  --text-muted: #55607a;
  --text-faint: #8a94a6;

  /* Surfaces */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-hover: #f1f5f9;

  /* Borders & dividers */
  --border: #e5e7eb;
  --border-soft: #eef2f6;
  --border-strong: #d1d5db;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.07);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);
  --shadow-brand: 0 6px 18px rgba(124, 58, 237, 0.25);
  --shadow-success: 0 6px 18px rgba(22, 163, 74, 0.22);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container: 1180px;
  --header-h: 60px;
}

/* ==========================================================================
   1. Base reset & global
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  font-size: 15px;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.65;
  min-width: 375px;
  text-rendering: optimizeLegibility;
}
a { color: var(--text); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--brand); }
img { border: 0; vertical-align: middle; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
input, button, textarea { font-family: inherit; font-size: inherit; }
input:focus, button:focus, textarea:focus, a:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}
button { cursor: pointer; }

/* Selection */
::selection { background: rgba(124, 58, 237, 0.16); color: var(--text); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Utilities */
.clearfix::before, .clearfix::after { content: ""; display: table; }
.clearfix::after { clear: both; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }

/* ==========================================================================
   2. Container
   ========================================================================== */
.content {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  padding: 0 12px;
}

/* ==========================================================================
   3. Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 100;
  background: rgba(28, 18, 53, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-box {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

/* Left: Logo */
.header .logo { display: block; flex-shrink: 0; }
.header .logo img { width: 168px; height: 32px; display: block; }

/* Left: Navigation */
.header-nav { flex: 1; display: flex; justify-content: flex-start; padding-left: 28px; }
.nav-menu { display: flex; gap: 4px; }
.nav-menu li { list-style: none; }
.nav-menu li a {
  display: block;
  padding: 0 20px;
  line-height: var(--header-h);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  letter-spacing: 0.2px;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-menu li a:hover { color: #fff; }
.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--brand-light);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after { transform: scaleX(1); }
.nav-menu li.current-menu-item a { color: #fff; }

/* Right: User */
.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.mobile-menu-toggle:hover { border-color: var(--brand); }
.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all 0.25s var(--ease);
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* User icon button */
.header-user { position: relative; }
.user-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
  padding: 0;
}
.user-icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.user-icon-btn .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* Logged-in dropdown */
.user-menu-logged {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: -12px;
}
.user-dropdown {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: 0;
  z-index: 200;
  overflow: hidden;
}
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.user-dropdown a:hover { background: var(--surface-hover); color: var(--brand); }
.user-dropdown a svg { flex-shrink: 0; }
.user-menu-logged:hover .user-dropdown { display: block; }

/* User info in dropdown */
.user-info-card {
  padding: 16px 16px 12px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border-soft);
}
.user-info-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.user-info-email { font-size: 12px; color: var(--text-faint); }

/* Member info in dropdown */
.user-member-card {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.user-member-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.user-member-badge.free {
  background: var(--success);
  color: #fff;
}
.user-member-detail {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.user-member-detail span { display: block; }
.user-member-detail a {
  display: inline;
  padding: 0;
  color: var(--brand);
  font-weight: 600;
}
.user-member-detail a:hover { background: none; }

.user-dropdown-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 0;
}

.header-c { padding-top: var(--header-h); }

/* ==========================================================================
   4. Home search hero
   ========================================================================== */
.home-search-box {
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
  padding: 64px 20px 56px;
  color: var(--text);
}
.home-top-h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  color: var(--text);
}
.home-top-p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.box-body { display: flex; justify-content: center; }
.home-search {
  width: 620px;
  max-width: 100%;
  position: relative;
}
.home-search-i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239ca3af"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat center;
  z-index: 2;
}
.home-search-input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 0 118px 0 48px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.home-search-input::placeholder { color: var(--text-faint); }
.home-search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}
.home-search-btn {
  position: absolute;
  right: 4px; top: 4px;
  width: 106px;
  height: 44px;
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.home-search-btn:hover {
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}
.home-search-btn:active { transform: translateY(0); }

/* ==========================================================================
   5. Grid list
   ========================================================================== */
.section-box {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.title-h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  padding: 16px 20px 16px 36px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.title-h1::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--brand-gradient);
}
.title-h1 .more-link {
  float: right;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}
.title-h1 .more-link:hover { color: var(--brand); }

.list-ul { clear: both; padding: 10px; }
.list-ul li {
  display: inline-block;
  width: 16.666%;
  float: left;
}
.list-box {
  margin: 8px;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  background: var(--surface);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.list-box:hover {
  transform: translateY(-4px);
  border-color: var(--brand-tint);
  box-shadow: var(--shadow-lg);
}
.list-img {
  display: block;
  width: 100%;
  text-align: center;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: #f7f8fa url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="10" height="10" fill="%23eef1f5"/><rect x="10" y="10" width="10" height="10" fill="%23eef1f5"/><rect x="10" y="0" width="10" height="10" fill="%23f7f8fa"/><rect x="0" y="10" width="10" height="10" fill="%23f7f8fa"/></svg>') repeat;
}
.list-img a { display: block; width: 100%; height: 100%; }
.list-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s var(--ease);
}
.list-box:hover .list-img img { transform: scale(1.06); }
.list-img-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(124, 58, 237, 0.18);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  border-radius: var(--radius-sm);
  pointer-events: none;
}
.list-box:hover .list-img-bg { opacity: 1; }
.list-hover-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--surface);
  top: 50%; left: 50%;
  margin-top: -26px; margin-left: -26px;
  z-index: 3;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}
.list-box:hover .list-hover-link { opacity: 1; transform: scale(1); }
.list-hover-link i {
  display: inline-block;
  width: 24px; height: 24px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%237c3aed"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>') no-repeat center;
}

/* Premium / VIP badge */
.premium-tag {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35);
  z-index: 4;
  pointer-events: none;
}
.list-msg {
  height: 22px;
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 10px;
}
.list-msg a { color: var(--text-secondary); font-size: 14px; }
.list-msg a:hover { color: var(--brand); }

/* ==========================================================================
   6. Breadcrumb
   ========================================================================== */
.bread-box {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-faint);
}
.bread-box a { color: var(--text-muted); }
.bread-box a:hover { color: var(--brand); }
.bread-box .bread-sep { color: var(--text-faint); margin: 0 6px; }
.bread-box .bread-current {
  display: inline;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================================================
   7. Detail page
   ========================================================================== */
.png-detail {
  clear: both;
  margin: 0 0 16px;
  display: flex;
  align-items: flex-start;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.png-main { float: left; width: 800px; padding: 24px; }
.png-info { float: right; width: 380px; padding: 24px; background: var(--surface-soft); border-left: 1px solid var(--border-soft); align-self: stretch; }

.png-img-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
  line-height: 1.4;
}
.png-img-title em { color: var(--brand); font-style: normal; }

.png-img-border {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f7f8fa url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="10" height="10" fill="%23eef1f5"/><rect x="10" y="10" width="10" height="10" fill="%23eef1f5"/><rect x="10" y="0" width="10" height="10" fill="%23f7f8fa"/><rect x="0" y="10" width="10" height="10" fill="%23f7f8fa"/></svg>') repeat;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.png-img-bg { text-align: center; }
.png-img-bg img { max-width: 100%; height: auto; margin: 0 auto; }

.png-img-introduce {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.png-img-copyright {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
  padding: 12px 14px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-tint);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
}

.png-img-tags { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.png-img-tags a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  margin: 0 6px 6px 0;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--surface);
  transition: all 0.2s var(--ease);
}
.png-img-tags a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

/* Right info */
.png-attr { display: flex; flex-direction: column; }
.png-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 26px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-brand);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.png-download-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.32);
}
.png-download-btn:active { transform: translateY(0); }

.png-ul-msg { margin: 0; }
.png-ul-msg li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
  color: var(--text-secondary);
}
.png-ul-msg li:last-child { border-bottom: none; padding-bottom: 2px; }
.png-ul-msg li:first-child { padding-top: 2px; }
.png-ul-msg li strong { color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.png-ul-msg li span { color: var(--text); font-weight: 600; text-align: right; }

/* Related materials */
.related-box { margin-top: 16px; }

/* ==========================================================================
   8. Download page
   ========================================================================== */
.down-box {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}
.down-box dl { display: flex; gap: 24px; }
.down-box dt {
  width: 180px;
  flex-shrink: 0;
}
.down-box dt img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.down-box dd { flex: 1; }
.down-box dd h1 { font-size: 20px; margin-bottom: 16px; color: var(--text); }
.down-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 20px;
}
.down-attrs span { display: inline-flex; align-items: center; }
.down-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 40px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-brand);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.down-button:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.32);
}
.down-link {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.down-link a { color: var(--brand); }
.down-copyright {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  background: var(--brand-soft);
  border: 1px solid var(--brand-tint);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   9. Tag cloud & letter index
   ========================================================================== */
.png-tag-list {
  position: relative;
  margin: 0;
  padding: 18px 20px;
  background: var(--surface);
}
.png-tag-list .tag-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.hide-tags {
  overflow: hidden;
  max-height: 40px;
  transition: max-height 0.3s var(--ease);
}
.hide-tags.expanded { max-height: 9999px; }
.hide-tags a {
  display: inline-block;
  height: 30px;
  line-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  margin: 0 5px 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--surface);
  transition: all 0.2s var(--ease);
}
.hide-tags a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.switch-btn {
  position: absolute;
  right: 20px; bottom: 18px;
  cursor: pointer;
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
}
.switch-btn b {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--brand);
  margin-left: 4px;
  transition: transform 0.3s var(--ease);
}
.switch-btn.expanded b { transform: rotate(180deg); }

/* A-Z letter index */
.letter-index {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}
.letter-index li { display: inline-block; margin: 3px; }
.letter-index a {
  display: block;
  width: 34px; height: 34px;
  line-height: 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}
.letter-index a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.letter-index a.active {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}

/* ==========================================================================
   10. Pagination
   ========================================================================== */
.pagination {
  text-align: center;
  padding: 30px 0;
}
.pagination a,
.pagination span {
  display: inline-block;
  height: 34px;
  line-height: 32px;
  min-width: 34px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0 3px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--surface);
  transition: all 0.2s var(--ease);
}
.pagination a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.pagination .page-active,
.pagination .current {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}
.pagination .page-more { border: none; background: transparent; }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  margin-top: 28px;
  padding: 28px 0;
}
.footer-box {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 0 12px;
}
.footer-item { margin-bottom: 10px; }
.footer-item:last-child { margin-bottom: 0; }
.footer-item a {
  display: inline-block;
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  line-height: 1;
  transition: color 0.2s var(--ease);
}
.footer-item a:last-child { border-right: none; }
.footer-item a:hover { color: var(--brand); }
.footer-item p { font-size: 12px; color: var(--text-faint); }

/* ==========================================================================
   12. Login / Register modal
   ========================================================================== */
.login-layer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.login-layer.active { display: flex; }

.login-modal {
  position: relative;
  width: 400px;
  max-width: 100%;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  animation: loginSlideIn 0.3s var(--ease);
}
@keyframes loginSlideIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 24px;
  color: var(--text-faint);
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.login-modal-close:hover { color: var(--text); background: var(--surface-hover); }

.login-modal-header { padding: 0 30px; border-bottom: 1px solid var(--border-soft); }
.login-tabs { display: flex; }
.login-tab {
  flex: 1;
  padding: 18px 0;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s var(--ease);
}
.login-tab:hover { color: var(--text); }
.login-tab.active { color: var(--brand); }
.login-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--brand);
  border-radius: 2px 2px 0 0;
}

.login-modal-body { padding: 28px 30px; }
.login-tab-panel { display: none; }
.login-tab-panel.active { display: block; animation: fadeIn 0.25s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.login-form-group { position: relative; margin-bottom: 16px; }
.login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.login-form-group input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px 0 42px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface-soft);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.login-form-group input::placeholder { color: var(--text-faint); }
.login-form-group input:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.login-btn-submit {
  width: 100%;
  height: 46px;
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.login-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}

.login-form-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}
.login-form-footer a {
  color: var(--brand);
  font-weight: 600;
  margin-left: 4px;
}
.login-form-footer a:hover { text-decoration: underline; }

.login-message {
  margin: 0 30px 20px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-align: center;
  color: var(--danger-strong);
  background: var(--danger-soft);
  border: 1px solid #fecaca;
}

/* ==========================================================================
   13. Tab panels (home + detail)
   ========================================================================== */
.tab-panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.tab-nav {
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  gap: 4px;
}
.tab-panel > .tab-nav { padding: 0 20px; }
.tab-nav li {
  padding: 13px 18px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tab-nav li:hover { color: var(--text); }
.tab-nav li.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 700;
}
.tab-content { display: none; padding: 6px; }
.tab-content.active { display: block; }

/* Detail page tab content panels (scoped to avoid clashing with the
   home .tab-panel card container) */
.tabs-section .tab-panel {
  display: none;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  overflow: visible;
  padding-top: 20px;
}
.tabs-section .tab-panel.active { display: block; }

/* ==========================================================================
   14. Generic pages
   ========================================================================== */
.page-content {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}
.page-content h1 { font-size: 24px; margin-bottom: 20px; color: var(--text); }
.page-content h2 { font-size: 18px; margin: 24px 0 12px; color: var(--text); }
.page-content h3 { font-size: 16px; margin: 20px 0 10px; color: var(--text); }
.page-content p { margin-bottom: 12px; line-height: 1.8; color: var(--text-secondary); }
.page-content a { color: var(--brand); }
.page-content ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; color: var(--text-secondary); }
.page-content ol { list-style: decimal; padding-left: 22px; margin-bottom: 12px; color: var(--text-secondary); }
.page-content li { margin-bottom: 6px; }
.page-content img { border-radius: var(--radius-sm); }

/* 404 page */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 h1 {
  font-size: 84px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 2px;
  line-height: 1;
}
.error-404 p { font-size: 18px; color: var(--text-muted); margin: 20px 0 28px; }
.error-404 a {
  display: inline-block;
  padding: 12px 32px;
  background: var(--brand-gradient);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: var(--shadow-brand);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.error-404 a:hover { color: #fff; transform: translateY(-1px); }

/* ==========================================================================
   15. Payment & buy page
   ========================================================================== */
.png-buy-btn {
  display: inline-block;
  padding: 9px 22px;
  background: var(--brand-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-left: 10px;
  font-weight: 600;
  box-shadow: var(--shadow-brand);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.png-buy-btn:hover { color: #fff; transform: translateY(-1px); }

.buy-box {
  max-width: 600px;
  margin: 30px auto;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.buy-product {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}
.buy-product-img {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
}
.buy-product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.buy-product-info h1 { font-size: 20px; margin-bottom: 10px; color: var(--text); }
.buy-price { font-size: 16px; color: var(--text-secondary); }
.buy-price strong { color: var(--brand); font-size: 26px; }
.buy-desc { color: var(--text-muted); font-size: 13px; margin-top: 8px; }

.buy-email-section {
  margin-bottom: 25px;
  padding: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.buy-email-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.buy-email-section input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.buy-email-section input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}
.buy-hint { color: var(--text-muted); font-size: 12px; margin-top: 6px; }

.paypal-buttons { margin-bottom: 20px; }
.paypal-loading { text-align: center; padding: 30px; color: var(--text-muted); }

.buy-error {
  padding: 14px 18px;
  background: var(--danger-soft);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  margin: 15px 0;
  color: var(--danger-strong);
  font-size: 14px;
}

.buy-security {
  text-align: center;
  padding: 15px;
  color: var(--text-muted);
  font-size: 12px;
}
.buy-security span { display: block; }
.buy-security span:first-child { font-weight: 600; color: var(--text-secondary); }

.buy-back { text-align: center; margin-top: 20px; }
.buy-back a { color: var(--text-muted); text-decoration: none; font-size: 13px; }
.buy-back a:hover { color: var(--brand); }

/* Order success page */
.order-success-box {
  max-width: 600px;
  margin: 30px auto;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.success-icon { margin-bottom: 20px; }
.success-icon svg { display: inline-block; }
.order-success-box h1 { color: var(--success); font-size: 28px; margin-bottom: 10px; }
.success-msg { color: var(--text-secondary); margin-bottom: 25px; }

.success-order-info {
  text-align: left;
  margin: 0 auto 25px;
  max-width: 420px;
  padding: 16px 20px;
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.success-order-info table { width: 100%; }
.success-order-info td { padding: 5px 8px; font-size: 13px; }
.success-order-info td:first-child { color: var(--text-muted); width: 120px; }

.download-section {
  padding: 24px;
  background: var(--success-soft);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.download-material {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  text-align: left;
}
.download-material img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.download-material-info h2 { font-size: 16px; color: var(--text); }
.download-material-info p { font-size: 12px; color: var(--text-muted); }

.download-now-btn {
  display: inline-block;
  padding: 14px 42px;
  background: linear-gradient(135deg, #22c55e 0%, var(--success) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 700;
  box-shadow: var(--shadow-success);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.download-now-btn:hover { color: #fff; transform: translateY(-1px); }
.download-hint { color: var(--text-muted); font-size: 12px; margin-top: 12px; }

.success-register-hint {
  padding: 20px;
  background: var(--warning-soft);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  margin: 20px 0;
}
.success-register-hint h3 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.success-register-hint p { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.success-register-hint .button {
  display: inline-block;
  padding: 9px 22px;
  background: var(--brand-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
}

.success-footer { margin-top: 20px; }
.success-footer a { color: var(--text-muted); text-decoration: none; font-size: 13px; }
.success-footer a:hover { color: var(--brand); }

.success-error h1 { color: var(--danger); }
.success-error p { color: var(--text-secondary); margin-bottom: 15px; }
.success-error .button {
  display: inline-block;
  padding: 9px 22px;
  background: var(--brand-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   16. Membership & subscription
   ========================================================================== */
.member-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 10px 14px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-tint);
  border-radius: var(--radius-md);
}

/* 分享行 */
.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
}
.share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 2px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
  flex-shrink: 0;
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
  color: #fff;
  opacity: 0.92;
}
.share-pinterest { background: #e60023; }
.share-facebook { background: #1877f2; }
.share-x { background: #111827; }
.share-reddit { background: #ff4500; }
.share-email { background: var(--brand); }
.share-copy {
  width: auto;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--text-muted);
  border: none;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.share-copy:hover { background: var(--brand); }
.share-copy .share-copy-text { min-width: 0; }
.share-copy.copied { background: var(--success); }
.member-status.free {
  background: var(--success-soft);
  border: 1px solid #bbf7d0;
}
.member-badge {
  display: inline-block;
  padding: 2px 10px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
}
.member-badge.free {
  background: linear-gradient(135deg, #22c55e 0%, var(--success) 100%);
}
.member-remaining {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Subscription page */
.subscription-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}
.subscription-page h1 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--text);
}
.subscription-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 48px;
}

.sub-guest-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--warning-soft);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  color: #92600a;
  font-size: 14px;
}
.sub-guest-notice a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.sub-guest-notice a:hover { text-decoration: underline; }

.member-account-box {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-xs);
}
.member-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.member-plan-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.member-status-badge {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}
.member-status-badge.active {
  background: var(--success-soft);
  color: var(--success);
}
.member-status-badge.free {
  background: var(--success-soft);
  color: var(--success);
}
.member-stats {
  display: flex;
  gap: 30px;
}
.member-stat { text-align: center; flex: 1; }
.member-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
}
.member-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Plan cards */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.plan-card:hover {
  border-color: var(--brand-tint);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.plan-card.popular {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
}
.plan-card.current {
  border-color: var(--success);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.1);
}
.plan-card .popular-badge {
  position: absolute;
  top: 0;
  right: 24px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 0 0 10px 10px;
  letter-spacing: 0.5px;
}
.plan-card .current-badge {
  position: absolute;
  top: 0;
  right: 24px;
  background: var(--success);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 0 0 10px 10px;
  letter-spacing: 0.5px;
}
.plan-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--brand-soft);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.plan-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  margin: 16px 0 8px;
  line-height: 1;
}
.plan-currency {
  font-size: 20px;
  font-weight: 600;
  vertical-align: super;
  color: var(--text-muted);
}
.plan-period {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-soft);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li svg { flex-shrink: 0; }

.plan-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--brand-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  margin-top: 8px;
}
.plan-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}
.plan-btn:disabled {
  background: var(--border-strong);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.paypal-btn-wrapper { margin-top: 8px; }
.paypal-sub-container { min-height: 45px; }
.paypal-sub-loading {
  text-align: center;
  padding: 12px;
  color: var(--text-muted);
  font-size: 13px;
}
.paypal-sub-error {
  text-align: center;
  padding: 10px;
  background: var(--danger-soft);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}
.paypal-sub-error span {
  color: var(--danger-strong);
  font-size: 13px;
}

.sub-trust-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--border-soft);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.sub-success-box {
  text-align: center;
  padding: 50px 30px;
  background: var(--success-soft);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-xl);
  margin-bottom: 40px;
}
.sub-success-box svg { margin-bottom: 16px; }
.sub-success-box h2 {
  font-size: 24px;
  color: var(--success);
  margin-bottom: 8px;
}
.sub-success-box p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.sub-success-btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #22c55e 0%, var(--success) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-success);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.sub-success-btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

/* ==========================================================================
   17. Download formats & help
   ========================================================================== */
.download-specs-box,
.download-formats-box,
.download-help-box,
.download-license-box {
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 16px 0 0;
}
.download-specs-box h3,
.download-formats-box h3,
.download-help-box h3,
.download-license-box h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.download-license-box p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.download-license-box a {
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
}
.download-license-box a:hover { text-decoration: underline; }
.format-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.format-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}
.format-icon {
  display: inline-block;
  padding: 3px 0;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  width: 44px;
  flex-shrink: 0;
  text-align: center;
}
.format-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.help-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.help-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  line-height: 1.55;
}
.help-list li:last-child { border-bottom: none; padding-bottom: 2px; }
.help-list li:first-child { padding-top: 2px; }
.help-list li strong {
  color: var(--brand);
  font-weight: 600;
}

/* ==========================================================================
   18. Tabs section (description / comments)
   ========================================================================== */
.tabs-section { padding: 24px; }

.tab-btn {
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.tab-desc-content {
  position: relative;
  overflow: hidden;
}
.tab-desc-content[data-expand="false"] { max-height: 200px; }
.tab-desc-content[data-expand="true"] { max-height: none; }
.tab-desc-content .expand-inner {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-bottom: 20px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.tab-desc-content .expand-inner p { margin-bottom: 10px; }
.tab-desc-content .expand-inner p:last-child { margin-bottom: 0; }
.expand-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--surface) 100%);
  pointer-events: none;
}
.tab-desc-content[data-expand="true"] .expand-fade { display: none; }
.expand-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  background: var(--surface-hover);
  border: 1px solid var(--border-soft) !important;
  outline: none !important;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.expand-btn:hover {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-tint) !important;
}
.no-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 40px 0;
}

/* Simple comment form */
.simple-comment-form {
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 30px;
}
.simple-comment-form h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-row label .required { color: var(--brand); }
.form-row input[type="email"],
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  box-sizing: border-box;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-row input[type="email"]:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}
.form-row textarea { resize: vertical; }
.comment-submit-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.comment-submit-btn:hover { transform: translateY(-1px); }
.comment-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.comment-message {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.comment-message.success {
  display: block;
  background: var(--success-soft);
  border: 1px solid #bbf7d0;
  color: var(--success);
}
.comment-message.error {
  display: block;
  background: var(--danger-soft);
  border: 1px solid #fecaca;
  color: var(--danger-strong);
}

/* Comment list */
.comment-list-box h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.simple-comment-list { list-style: none; padding: 0; }
.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.comment-item:last-child { border-bottom: none; }
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.comment-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}
.comment-date { font-size: 12px; color: var(--text-faint); }
.comment-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.no-comments {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 20px 0;
}

/* ==========================================================================
   19. Free plan & comparison table
   ========================================================================== */
.plan-card.free {
  border-color: var(--border);
  background: var(--surface);
}
.plan-card.free:hover { border-color: var(--success); }
.plan-card.free.current {
  border-color: var(--success);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.1);
}
.plan-card.free .plan-icon {
  background: var(--success-soft);
}
.plan-card.free .plan-price {
  color: var(--success);
}

.plan-comparison {
  margin: 50px 0 30px;
}
.plan-comparison h2 {
  text-align: center;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 30px;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-soft);
}
.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}
.comparison-table th {
  background: var(--surface-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.comparison-table th:first-child {
  text-align: left;
  width: 40%;
}
.comparison-table td:first-child {
  text-align: left;
  font-size: 14px;
  color: var(--text-secondary);
}
.comparison-table .col-free {
  color: var(--success);
  font-weight: 600;
}
.comparison-table .col-paid {
  color: var(--brand);
  font-weight: 600;
}
.comparison-table .feature-name { font-weight: 500; }
.comparison-table .free-price { color: var(--success); }
.comparison-table tbody tr:last-child td {
  border-bottom: none;
  background: var(--surface-soft);
  font-weight: 700;
}
.comparison-table svg { vertical-align: middle; }

/* ==========================================================================
   20. Home membership CTA section
   ========================================================================== */
.home-membership-cta {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  text-align: center;
}
.home-cta-inner {
  max-width: 900px;
  margin: 0 auto;
}
.home-cta-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.home-cta-title svg { flex-shrink: 0; }
.home-cta-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.home-plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.home-plan-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-xs);
}
.home-plan-card:hover {
  border-color: var(--brand-tint);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.home-plan-card.free { border-color: var(--border); }
.home-plan-card.free:hover { border-color: var(--success); }
.home-plan-card.popular {
  border-color: var(--brand);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.1);
}
.home-popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
}
.home-plan-header { margin-bottom: 16px; }
.home-plan-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.home-plan-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
}
.home-plan-card.free .home-plan-price { color: var(--success); }
.home-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  text-align: left;
}
.home-plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-soft);
}
.home-plan-features li:last-child { border-bottom: none; }
.home-plan-features svg { flex-shrink: 0; }
.home-plan-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--brand-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  border: none;
  cursor: pointer;
}
.home-plan-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
  color: #fff;
}
.home-plan-btn.primary { background: var(--brand-gradient); }
.home-plan-btn.current {
  background: var(--border-strong);
  color: var(--text-muted);
  cursor: default;
  box-shadow: none;
}
.home-cta-footer { margin-top: 20px; }
.home-cta-link {
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.home-cta-link:hover { text-decoration: underline; }

/* ==========================================================================
   21. Search form (searchform.php)
   ========================================================================== */
.search-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 52px 0 18px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.search-input::placeholder { color: var(--text-faint); }
.search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}
.search-button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--brand-gradient);
  cursor: pointer;
}
.search-button::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat center;
  background-size: 18px 18px;
}

/* ==========================================================================
   22. Responsive
   ========================================================================== */
@media screen and (max-width: 1200px) {
  .content, .footer-box { width: 96%; }
  .header-box { width: 96%; }
}
@media screen and (max-width: 900px) {
  .png-detail { flex-direction: column; }
  .png-main { float: none; width: 100%; }
  .png-info { float: none; width: 100%; border-left: none; border-top: 1px solid var(--border-soft); }
  .list-ul li { width: 33.333%; }
}
@media screen and (max-width: 768px) { 
  .bread-box {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-box { padding: 0 12px; }
  .header-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
    z-index: 99;
    justify-content: flex-end;
  }
  .header-nav.open { max-height: 320px; }
  .nav-menu { flex-direction: column; padding: 8px 20px; align-items: flex-end; gap: 0; }
  .nav-menu li { width: 100%; text-align: right; }
  .nav-menu li a {
    display: inline-block;
    padding: 12px 0;
    line-height: 1.5;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-soft);
    text-align: right;
  }
  .nav-menu li a::after { display: none; }
  .nav-menu li.current-menu-item a { color: var(--brand); }
  .nav-menu li:last-child a { border-bottom: none; }
  .mobile-menu-toggle { display: flex; }

  .plan-cards { grid-template-columns: 1fr; }
  .member-stats { gap: 16px; }
  .sub-trust-badges { flex-direction: column; gap: 16px; align-items: center; }
  .home-plan-cards { grid-template-columns: 1fr; }
  .comparison-table th,
  .comparison-table td { padding: 12px 10px; font-size: 12px; }
  .home-membership-cta { padding: 24px 16px; }
  .home-cta-title { font-size: 20px; }
  .buy-product { flex-direction: column; }
  .buy-product-img img { width: 100px; height: 100px; }
  .download-material { flex-direction: column; text-align: center; }
  .down-box dl { flex-direction: column; }
  .down-box dt { width: 100%; text-align: center; }
  .down-box dt img { width: 200px; height: 200px; }
}

@media screen and (max-width: 640px) {
  .home-search { width: 100%; }
  .home-top-h1 { font-size: 22px; }
  .home-top-p { font-size: 14px; }
  .home-search-box { padding: 44px 16px 40px; }
  .list-ul li { width: 50%; }
  .list-box { margin: 6px; padding: 6px; }
  .login-modal { width: 92%; }
  .page-content { padding: 22px 18px; }
  .error-404 h1 { font-size: 64px; }
  .tabs-section { padding: 16px; }
  .tab-btn { padding: 12px 16px; font-size: 14px; }
  .png-main, .png-info { padding: 16px; }
  .png-img-border { min-height: 260px; }
}
