/* ============================================
   颜王门户网站 v2.0 - 全局样式
   配色：薄荷绿 #4bd1ab + 浅紫 #7c74cc
   ============================================ */

/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* 自定义 CSS 变量 */
:root {
  --p1: #4bd1ab;
  --p1d: #34cba0;
  --p1l: #b0eddb;
  --p2: #7c74cc;
  --p2d: #665dc3;
  --p2l: #9991ed;
  --bg: #ffffff;
  --bg2: #f8f9fa;
  --card: #ffffff;
  --card-border: #e8e8e8;
  --text: #111111;
  --text2: #666666;
  --text3: #999999;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --font: 'Geist', 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --max-width: 1200px;
}

/* 全局重置 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--p1); border-radius: 3px; }

/* 容器 */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* 导航栏 */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 8px 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--p1); }

.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav-btn {
  background: transparent;
  border: none;
  color: var(--text2);
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all .2s;
  font-family: var(--font);
}
.nav-btn:hover { background: var(--bg2); color: var(--text); }
.nav-btn.active { background: var(--p1); color: #fff; font-weight: 600; }

/* 联系我们下拉 */
.contact-wrap { position: relative; }
.contact-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--p1);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: 1px;
  font-family: var(--font);
  white-space: nowrap;
}
.contact-trigger:hover { background: var(--p1d); }
.contact-trigger::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;
  margin-left: 4px;
  transition: transform .2s;
}
.contact-trigger.open::after { transform: rotate(180deg); }

.contact-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 6px;
  display: none;
  z-index: 200;
}
.contact-menu.show { display: block; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: all .15s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}
.contact-item:hover { background: var(--bg2); color: var(--p1); }
.contact-divider { height: 1px; background: var(--card-border); margin: 4px 6px; }

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-text { flex: 1; min-width: 300px; }
.hero-text h1 { font-size: 2.8rem; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.hero-text h1 span { color: var(--p1); }
.hero-text h2 { font-size: 1.4rem; font-weight: 400; color: var(--text2); margin-bottom: 4px; }
.hero-text .sub { font-size: 1.1rem; color: var(--text3); letter-spacing: 4px; margin-bottom: 16px; }
.hero-text .desc { font-size: 1rem; color: var(--text2); line-height: 1.6; margin-bottom: 24px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image {
  flex: 0 0 auto;
  width: 320px; height: 320px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-image .placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--p1l), var(--p2l));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font);
  text-decoration: none;
}
.btn-primary { background: var(--p1); color: #111; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--p1d); transform: translateY(-2px); }
.btn-secondary { background: var(--p2); color: #fff; box-shadow: var(--shadow); }
.btn-secondary:hover { background: var(--p2d); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--card-border); color: var(--text); }
.btn-outline:hover { border-color: var(--p1); color: var(--p1); }
.btn-sm { font-size: 11px; padding: 6px 12px; }
.btn-hero-primary { background: var(--p1); color: #111; box-shadow: var(--shadow); padding: 10px 28px; letter-spacing: 1px; text-transform: uppercase; }
.btn-hero-primary:hover { background: var(--p1d); transform: translateY(-2px); }
.btn-hero-secondary { background: var(--p2); color: #fff; box-shadow: var(--shadow); padding: 10px 28px; letter-spacing: 1px; text-transform: uppercase; }
.btn-hero-secondary:hover { background: var(--p2d); transform: translateY(-2px); }
.btn-hero-outline { background: transparent; border: 2px solid var(--card-border); color: var(--text); padding: 10px 28px; letter-spacing: 1px; text-transform: uppercase; }
.btn-hero-outline:hover { border-color: var(--p1); color: var(--p1); }

/* 直播状态徽章 */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.live-badge.online { background: rgba(75, 209, 171, .15); color: var(--p1); border: 1px solid rgba(75, 209, 171, .3); }
.live-badge.offline { background: rgba(102, 102, 102, .1); color: var(--text3); border: 1px solid rgba(102, 102, 102, .2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p1); display: inline-block; animation: pulse 2s infinite; }
.live-dot-off { width: 8px; height: 8px; border-radius: 50%; background: #bbb; display: inline-block; }
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } 100% { opacity: 1; transform: scale(1); } }

/* 区块 */
.section-wrap { max-width: var(--max-width); margin: 0 auto; padding: 60px 20px; }
.section-title { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.section-sub { text-align: center; font-size: 1rem; color: var(--text2); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--p1); }
.card-icon { font-size: 36px; margin-bottom: 12px; }
.card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.card p { font-size: .85rem; color: var(--text2); line-height: 1.6; }

/* 直播嵌入 */
.live-embed-wrap { max-width: 800px; margin: 0 auto 24px; }
.live-embed-card { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--shadow); }
.live-embed-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--card-border); }
.live-embed-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.live-embed-dot.on { background: var(--p1); animation: pulse 1s infinite; }
.live-embed-dot.off { background: #bbb; }
.live-embed-title { font-size: 13px; color: var(--text2); flex: 1; }
.live-embed-frame { width: 100%; aspect-ratio: 16/9; border: none; background: #f0f0f0; display: block; }
.live-embed-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg2), var(--bg));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
}
.live-embed-placeholder .icon { font-size: 56px; opacity: .4; }
.live-embed-placeholder .text { font-size: 16px; color: var(--text2); }
.live-embed-placeholder .sub { font-size: 12px; color: var(--text3); }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--p1l), var(--p2l)); padding: 60px 20px; text-align: center; }
.cta-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.cta-section p { font-size: 1rem; color: var(--text2); margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { background: var(--bg2); border-top: 1px solid var(--card-border); padding: 40px 20px 20px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text); }
.footer-col p, .footer-col a { font-size: 13px; color: var(--text2); line-height: 1.8; text-decoration: none; display: block; }
.footer-col a:hover { color: var(--p1); }
.footer-brand { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.footer-brand span { color: var(--p1); }
.footer-divider { width: 60px; height: 3px; background: var(--p1); margin-bottom: 16px; }
.footer-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-btns a, .footer-btns button {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--card); color: var(--text2);
  padding: 6px 14px; border-radius: 20px; font-size: 12px;
  text-decoration: none; border: 1px solid var(--card-border);
  cursor: pointer; transition: all .2s; font-family: var(--font);
}
.footer-btns a:hover, .footer-btns button:hover { border-color: var(--p1); color: var(--p1); }
.footer-bottom { text-align: center; padding-top: 16px; border-top: 1px solid var(--card-border); }
.footer-bottom p { font-size: 11px; color: var(--text3); }

/* 页面切换 */
.portal-page { display: none; }
.portal-page.active { display: block; }

/* 直播页 */
.live-hero { max-width: var(--max-width); margin: 0 auto; padding: 40px 20px; display: flex; gap: 40px; flex-wrap: wrap; }
.live-hero-text { flex: 1; min-width: 280px; }
.live-hero-text h1 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.live-hero-text h1 span { color: var(--p1); }
.live-hero-image { flex: 0 0 280px; }
.live-hero-image .placeholder { width: 260px; height: 260px; border-radius: 50%; background: linear-gradient(135deg, var(--p1l), var(--p2l)); display: flex; align-items: center; justify-content: center; font-size: 72px; box-shadow: var(--shadow); }

/* 逆战页 */
.nz-section { max-width: var(--max-width); margin: 0 auto; padding: 40px 20px; }
.nz-hero { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; margin-bottom: 40px; }
.nz-hero-text { flex: 1; min-width: 280px; }
.nz-hero-text h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.nz-hero-text h1 span { color: var(--p1); }
.nz-hero-icon { flex: 0 0 200px; text-align: center; }
.nz-hero-icon .big { font-size: 96px; }

/* 更多页 */
.more-hero { max-width: 600px; margin: 60px auto; text-align: center; padding: 40px 20px; }
.more-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.more-hero h1 span { color: var(--p1); }
.more-hero p { color: var(--text2); }

/* QR 弹窗 */
.qr-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.5); z-index: 1000;
  display: none; justify-content: center; align-items: center;
  backdrop-filter: blur(4px);
}
.qr-modal.show { display: flex; }
.qr-modal-content {
  background: var(--card); padding: 24px; border-radius: var(--radius-lg);
  text-align: center; border: 1px solid var(--card-border);
  max-width: 90vw; box-shadow: var(--shadow);
}
.qr-modal-content img { width: 260px; height: auto; border-radius: var(--radius); display: block; margin: 0 auto 12px; }
.qr-modal-content .hint { font-size: 11px; color: var(--text3); }

/* Toast */
#toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--card); color: var(--text); padding: 10px 24px;
  border-radius: 20px; border: 1px solid var(--card-border);
  font-size: 13px; z-index: 9999; opacity: 0; transition: opacity .3s;
  pointer-events: none; box-shadow: var(--shadow);
}
#toast.show { opacity: 1; }

/* 装饰点 */
.deco-row { display: flex; gap: 8px; margin-bottom: 8px; }
.deco-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.deco-dot.p1 { background: var(--p1); }
.deco-dot.p2 { background: var(--p2); }
.deco-dot.p1l { background: var(--p1l); }

/* 响应式 */
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding: 40px 16px; }
  .hero-text h1 { font-size: 2rem; }
  .hero-btns { justify-content: center; }
  .hero-image { width: 200px; height: 200px; }
  .hero-image .placeholder { font-size: 56px; }
  .section-title { font-size: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .live-hero { flex-direction: column; text-align: center; }
  .live-hero-image { margin: 0 auto; }
  .nz-hero { flex-direction: column; text-align: center; }
  .nz-hero-icon { margin: 0 auto; }
  .header-inner { gap: 8px; padding: 6px 12px; }
  .nav-btn { padding: 5px 10px; font-size: 12px; }
  .logo { font-size: 16px; }
}
@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.6rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ========== 软件推广 ========== */
.software-banner {
  display: flex; align-items: center; gap: 32px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.software-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(75,209,171,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.software-banner-left { flex: 1; position: relative; z-index: 1; min-width: 260px; }
.software-banner-left h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.software-banner-left p { font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.software-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
  animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,107,.4); }
  50% { box-shadow: 0 0 0 8px rgba(255,107,107,0); }
}
.software-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.software-tags span {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,.15);
}
.software-banner-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.software-banner-btns .btn-primary { background: #ff6b6b; color: #fff; }
.software-banner-btns .btn-primary:hover { background: #ee5a24; }
.software-banner-btns .btn-outline { border-color: rgba(255,255,255,.3); color: #fff; }
.software-banner-btns .btn-outline:hover { border-color: #fff; }
.software-banner-right { flex: 0 0 260px; position: relative; z-index: 1; }
.software-preview {
  width: 260px; height: 180px;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
  overflow: hidden;
}
.software-preview img { width: 100%; height: 100%; object-fit: cover; }

/* 软件详情页 */
.software-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}
.software-hero-icon { font-size: 72px; margin-bottom: 16px; }
.software-badge-lg {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.software-hero h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 12px; }
.software-hero-sub { font-size: 1.1rem; color: var(--text2); max-width: 500px; margin: 0 auto 20px; }
.software-hero-meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--text3); margin-bottom: 24px; }
.dot-sep { color: var(--card-border); }
.software-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 步骤 */
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 32px; }
.step-card { text-align: center; padding: 28px 20px; background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--card-border); }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.step-card p { font-size: .85rem; color: var(--text2); }
.step-card kbd {
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-family: monospace;
}

/* 亮点 */
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 32px; }
.highlight-card { text-align: center; padding: 24px 20px; }
.hl-icon { font-size: 40px; margin-bottom: 12px; }
.highlight-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.highlight-card p { font-size: .85rem; color: var(--text2); line-height: 1.6; }

/* 软件页响应式 */
@media (max-width: 768px) {
  .software-banner { flex-direction: column; text-align: center; padding: 28px 20px; }
  .software-banner-right { flex: 0 0 auto; }
  .software-preview { width: 200px; height: 140px; margin: 0 auto; }
  .software-banner-btns { justify-content: center; }
  .software-tags { justify-content: center; }
  .software-hero h1 { font-size: 1.6rem; }
  .software-hero-icon { font-size: 56px; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ====== 直播窗口内打开按钮 ====== */
.btn-live-go {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(239,68,68,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-live-go:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239,68,68,0.45); }
.btn-live-go:active { transform: translateY(0); }

.live-embed-dot.off { background: #9ca3af; }

/* ====== 视频解析器 ====== */
.parser-hero {
  min-height: calc(100dvh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  position: relative;
  overflow: hidden;
}
.parser-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.15) 0%, transparent 40%),
              radial-gradient(circle at 70% 80%, rgba(255,255,255,.1) 0%, transparent 40%);
  pointer-events: none;
}
.parser-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px 32px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.parser-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.02em;
}
.parser-sub {
  text-align: center;
  color: #6b7280;
  margin: 0 0 24px;
  font-size: 0.95rem;
}
.parser-input-wrap {
  margin-bottom: 16px;
}
.parser-input {
  width: 100%;
  min-height: 100px;
  max-height: 240px;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  box-sizing: border-box;
}
.parser-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}
.parser-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.parser-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  font-family: inherit;
}
.parser-btn:hover { transform: translateY(-2px); }
.parser-btn:active { transform: translateY(0); }
.parser-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  flex: 2;
}
.parser-btn-primary:hover { box-shadow: 0 8px 20px rgba(102,126,234,0.35); }
.parser-btn-paste {
  background: #f3f4f6;
  color: #374151;
}
.parser-btn-paste:hover { background: #e5e7eb; }
.parser-btn-clear {
  background: #fee2e2;
  color: #dc2626;
}
.parser-btn-clear:hover { background: #fecaca; }
.parser-result {
  margin-top: 20px;
  min-height: 0;
}
.parser-result-empty {
  text-align: center;
  color: #9ca3af;
  padding: 30px 20px;
  font-size: 0.9rem;
}
.parser-result-item {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.parser-result-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: #e2e8f0;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.parser-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.parser-result-info { flex: 1; min-width: 0; }
.parser-result-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}
.parser-result-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 8px;
}
.parser-result-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.parser-result-btn {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}
.parser-result-btn:hover { background: #667eea; color: #fff; border-color: #667eea; }
.parser-result-btn-primary { background: #667eea; color: #fff; border-color: #667eea; }
.parser-result-btn-primary:hover { background: #5568d3; }
.parser-loading {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}
.parser-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.parser-platforms {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}
.parser-platforms-title {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 12px;
}
.parser-platforms-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.parser-platform-tag {
  display: inline-block;
  padding: 6px 14px;
  background: #f3f4f6;
  border-radius: 20px;
  font-size: 0.82rem;
  color: #4b5563;
  font-weight: 500;
  transition: all 0.15s;
}
.parser-platform-tag:hover { background: #e0e7ff; color: #4338ca; transform: translateY(-1px); }

@media (max-width: 640px) {
  .parser-card { padding: 28px 20px 24px; border-radius: 18px; }
  .parser-title { font-size: 1.5rem; }
  .parser-sub { font-size: 0.85rem; }
  .parser-btn { font-size: 0.88rem; padding: 10px 16px; min-width: 90px; }
  .parser-result-item { flex-direction: column; align-items: flex-start; }
  .parser-result-thumb { width: 100%; height: 160px; }
}
