/* 悟空 AI 插件介绍页（plugin.html），在 home.css 基础上补充 */
.pl-hero { position: relative; max-width: 1240px; margin: 0 auto; padding: 70px 24px 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pl-hero h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.16; font-weight: 800; letter-spacing: .04em; margin: 24px 0 26px; }
.pl-hero .lead { max-width: 560px; }
.pl-meta { display: flex; flex-wrap: wrap; gap: 36px; list-style: none; margin-top: 46px; padding: 0; color: var(--dim); font-size: 13px; }
.pl-meta li { padding-left: 16px; border-left: 1px solid var(--line); }
.pl-meta li:first-child { padding-left: 0; border-left: 0; }
.pl-meta b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--text); line-height: 1.3; }

.pl-hero-visual { position: relative; display: flex; justify-content: center; }
.pl-panel { position: relative; z-index: 1; width: 330px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(226,196,138,.25); background: #1b1a18; box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03) inset; transform: rotate(-2deg); }
.pl-panel-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #262421; color: #d9d0c0; font-size: 12px; font-weight: 600; }
.pl-panel-bar img { width: 22px; height: 22px; border-radius: 6px; background: #fff; }
.pl-panel-tabs { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.pl-panel-tabs i { font-style: normal; padding: 4px 8px; border-radius: 6px; color: #9a9184; font-size: 11px; }
.pl-panel-tabs i.on { color: #1c1610; background: linear-gradient(135deg, #f0d9a8, #c39a5c); font-weight: 600; }
.pl-panel-body { padding: 12px; display: grid; gap: 8px; }
.pl-panel-img { border-radius: 10px; overflow: hidden; aspect-ratio: 420 / 283; background: #111; }
.pl-panel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-panel-row { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.04); color: #8f877a; font-size: 12px; }
.pl-panel-row b { color: #e9dcc2; font-weight: 600; }
.pl-panel-btn { margin-top: 4px; padding: 10px; border-radius: 9px; text-align: center; color: #1c1610; font-weight: 700; font-size: 13px; background: linear-gradient(135deg, #f0d9a8, #b98d4f); }
.pl-mascot { position: absolute; z-index: 2; right: 2%; bottom: -30px; width: 170px; height: 170px; border-radius: 50%; background: #fff; padding: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 4px rgba(226,196,138,.35); animation: pl-float 5s ease-in-out infinite; }
@keyframes pl-float { 50% { transform: translateY(-10px); } }

.plugin-page .features { grid-template-columns: repeat(4, 1fr); }
.plugin-page .feature h3 { font-size: 18px; }

.pl-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.pl-gallery figure { position: relative; margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #111; }
.pl-gallery figure.wide { grid-column: span 2; aspect-ratio: 420 / 283; }
.pl-gallery figure.tall { grid-column: span 3; aspect-ratio: 4 / 3; }
.pl-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pl-gallery figure.tall img { object-position: center 30%; }
.pl-gallery figure:hover img { transform: scale(1.04); }
.pl-gallery figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px; color: #f4efe6; font-size: 12px; background: rgba(10,9,8,.72); backdrop-filter: blur(6px); }

.pl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin: 0 auto; }
.pl-chips span { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--muted); font-size: 14px; }

.pl-download { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 36px 40px; border-radius: 28px; border: 1px solid rgba(226,196,138,.3); background: radial-gradient(80% 120% at 0% 0%, rgba(201,164,101,.18), transparent 60%), #141311; }
.pl-download > img { width: 120px; height: 120px; border-radius: 28px; background: #fff; padding: 8px; }
.pl-download h2 { font-size: clamp(26px, 3vw, 36px); margin: 10px 0 10px; }
.pl-download-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pl-download-meta span { padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--muted); font-size: 13px; }
.pl-download-meta b { color: var(--brand-2); }
.pl-download-note { margin: 14px 0 0; color: var(--dim); font-size: 14px; }
.pl-download-actions { display: grid; gap: 10px; min-width: 230px; }
.pl-download-actions .btn { justify-content: center; }
.pl-download-tip { margin: 2px 0 0; color: var(--brand-2); font-size: 13px; text-align: center; max-width: 260px; }
.pl-help { margin-top: 28px; text-align: center; color: var(--muted); }
.pl-help a { color: var(--brand-2); text-decoration: underline; }

/* 首页上的插件推荐区 */
.plugin-teaser { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding: 30px 36px; border-radius: 26px; border: 1px solid rgba(226,196,138,.28); background: radial-gradient(70% 140% at 100% 0%, rgba(201,164,101,.16), transparent 60%), rgba(20,19,17,.85); }
.plugin-teaser > img { width: 96px; height: 96px; border-radius: 24px; background: #fff; padding: 6px; }
.plugin-teaser h3 { font-family: var(--font-display); font-size: 26px; margin: 8px 0 8px; }
.plugin-teaser p { margin: 0; color: var(--muted); line-height: 1.7; }
.plugin-teaser-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 1100px) { .plugin-page .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .pl-hero { grid-template-columns: 1fr; padding-top: 40px; }
  .pl-hero-visual { margin-top: 20px; }
  .pl-gallery { grid-template-columns: repeat(2, 1fr); }
  .pl-gallery figure.wide, .pl-gallery figure.tall { grid-column: span 1; }
  .pl-download, .plugin-teaser { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 28px 22px; }
  .pl-download-meta, .plugin-teaser-actions { justify-content: center; }
}
@media (max-width: 680px) {
  .plugin-page .features { grid-template-columns: 1fr; }
  .pl-panel { width: 280px; }
  .pl-mascot { width: 110px; height: 110px; right: 0; }
  .pl-meta { gap: 18px; }
  .pl-meta b { font-size: 19px; }
}

/* 越南语：与首页一致，换成带声调的字体并收紧字距 */
html[lang="vi"] .pl-hero h1 { font-size: clamp(34px, 4.4vw, 58px); letter-spacing: 0; line-height: 1.2; }
html[lang="vi"] .plugin-teaser h3, html[lang="vi"] .pl-download h2 { letter-spacing: 0; }

/* 价格与购买 */
.pl-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.pl-plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.pl-plan.featured { border-color: rgba(226,196,138,.55); background: radial-gradient(90% 60% at 50% 0%, rgba(201,164,101,.16), transparent 70%), rgba(20,19,17,.9); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.pl-plan-badge { position: absolute; top: -12px; left: 26px; padding: 4px 12px; border-radius: 999px; color: #1c1610; font-style: normal; font-size: 12px; font-weight: 700; background: linear-gradient(135deg, #f0d9a8, #c39a5c); }
.pl-plan h3 { margin: 0; font-size: 20px; }
.pl-plan-price { margin: 16px 0 2px; font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--brand-2); line-height: 1.2; }
.pl-plan-price .ask { font-size: 22px; }
.pl-plan-period { margin: 0; color: var(--dim); font-size: 13px; }
.pl-plan ul { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 10px; flex: 1; }
.pl-plan li { position: relative; padding-left: 24px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.pl-plan li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand-2); font-weight: 700; }
.pl-plan .btn { justify-content: center; width: 100%; }
.pl-buy { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; margin-top: 26px; padding: 26px 30px; border-radius: 22px; border: 1px dashed rgba(226,196,138,.4); background: rgba(201,164,101,.05); }
.pl-buy > img { width: 140px; height: 140px; padding: 8px; border-radius: 14px; background: #fff; }
.pl-buy h3 { margin: 0 0 8px; font-size: 22px; }
.pl-buy p { margin: 0; color: var(--muted); line-height: 1.7; }
.pl-buy-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 900px) {
  .pl-plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .pl-buy { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pl-buy-actions { justify-content: center; }
}

/* 手机：导航放不下，隐藏右上角的主按钮（首屏下面有同样的按钮），品牌名不换行 */
@media (max-width: 680px) {
  .nav .brand span:last-child { white-space: nowrap; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-primary { display: none; }
  .lang-switch button { padding: 4px 7px; }
}
@media (max-width: 380px) { .nav .brand span:last-child { display: none; } }
