/* Pure PHP site extras (no Nuxt) */
.apksafe-dropdown { position: relative; }
.apksafe-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  margin-top: 0.25rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  z-index: 60;
}
.apksafe-dropdown.open .apksafe-dropdown-menu { display: block; }
.apksafe-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
  text-decoration: none;
}
.apksafe-dropdown-menu a:hover {
  background: #f0f9ff;
  color: #0284c7;
}
.apksafe-mobile-panel {
  display: none;
  border-top: 1px solid #f3f4f6;
  background: #fff;
  padding: 0.75rem 1rem 1rem;
}
.apksafe-mobile-panel.open { display: block; }
.apksafe-mobile-panel a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: #374151;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}
.apksafe-mobile-panel a:hover {
  background: #f0f9ff;
  color: #0284c7;
}
.apksafe-contact-type {
  border-color: #e5e7eb !important;
  background: #fff !important;
  color: #6b7280 !important;
}
.apksafe-contact-type:hover {
  border-color: #d1d5db !important;
  background: #f9fafb !important;
}
.apksafe-contact-type.is-active {
  border-color: #0ea5e9 !important;
  background: #f0f9ff !important;
  color: #0284c7 !important;
}
.apksafe-contact-type.is-active:hover {
  border-color: #0ea5e9 !important;
  background: #e0f2fe !important;
  color: #0284c7 !important;
}

/* Blog / 行业资讯 */
/* 行业资讯：对齐原站 www.rongjikeji.com / ApkSafe 布局（无搜索、无分页） */
.news-page {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  min-height: 60vh;
}
@media (min-width: 640px) { .news-page { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .news-page { padding-left: 2rem; padding-right: 2rem; } }

.news-hero {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}
.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0f9ff;
  color: #0284c7;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.news-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.news-hero p {
  margin: 0;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: box-shadow .3s ease;
}
.news-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.06); }
.news-card time {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.news-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
.news-card:hover h2 { color: #0284c7; }
.news-card p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.625;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-more {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0284c7;
}

.news-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: #9ca3af;
}
.news-empty p { margin: 0; font-size: 0.875rem; }

.news-detail {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}
@media (min-width: 640px) { .news-detail { padding-left: 1.5rem; padding-right: 1.5rem; } }

.news-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0284c7;
  text-decoration: none;
  margin-bottom: 2rem;
}
.news-back:hover { color: #0369a1; }

.news-detail-date {
  display: block;
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1.25rem;
}
.news-detail h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.news-detail-summary {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.7;
}

.news-prose {
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.85;
}
.news-prose p { margin: 0 0 1.1rem; }
.news-prose h2, .news-prose h3 {
  color: #111827;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
}
.news-prose ul, .news-prose ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.news-prose a { color: #0284c7; }
.news-prose img { max-width: 100%; height: auto; border-radius: 0.75rem; }

.news-cta {
  margin-top: 3.5rem;
  padding: 2rem;
  text-align: center;
  border-radius: 1rem;
  border: 1px solid #e0f2fe;
  background: linear-gradient(135deg, #f0f9ff 0%, #eff6ff 100%);
}
.news-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}
.news-cta p {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.news-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background: #0ea5e9;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease;
}
.news-cta a:hover { background: #0284c7; }

.seo-breadcrumb {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  color: #9ca3af;
}
.seo-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.seo-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: #d1d5db;
}
.seo-breadcrumb a {
  color: #0284c7;
  text-decoration: none;
}
.seo-breadcrumb a:hover { text-decoration: underline; }
.seo-breadcrumb span[aria-current="page"] { color: #6b7280; }

.news-cover {
  margin: 0 0 2rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f8fafc;
}
.news-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.news-page > .seo-breadcrumb {
  max-width: 80rem;
  margin-bottom: 1rem;
}

/* 本地化在线客服浮窗（替代 Zoho） */
.cw-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.cw-fab {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #0ea5e9;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
  transition: transform .2s ease, background .2s ease;
}
.cw-fab:hover { background: #0284c7; transform: scale(1.05); }
.cw-fab-icon { display: flex; align-items: center; justify-content: center; line-height: 1; }
.cw-fab-close { display: none; font-size: 28px; font-weight: 300; }
.cw-root.is-open .cw-fab-chat { display: none; }
.cw-root.is-open .cw-fab-close { display: flex; }

.cw-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 100px));
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: cw-pop .18s ease;
}
.cw-panel[hidden] { display: none !important; }
@keyframes cw-pop {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.cw-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
}
.cw-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cw-head-text { flex: 1; min-width: 0; }
.cw-title { font-size: 15px; font-weight: 700; }
.cw-status { font-size: 12px; opacity: .92; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.cw-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .25);
}
.cw-close {
  border: 0; background: transparent; color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; opacity: .9;
}
.cw-panel-body {
  padding: 14px;
  overflow-y: auto;
  background: #f8fafc;
}
.cw-bubble {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px 12px 12px 4px;
  padding: 10px 12px;
  font-size: 13px;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 12px;
}
.cw-actions { display: flex; flex-direction: column; gap: 8px; }
.cw-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cw-action:hover {
  border-color: #7dd3fc;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
}
.cw-action-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: #e0f2fe; color: #0284c7;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 16px;
}
.cw-action-tg .cw-action-icon { background: #dbeafe; color: #2563eb; }
.cw-action strong { display: block; font-size: 13px; color: #0f172a; }
.cw-action small { display: block; font-size: 11px; color: #64748b; margin-top: 2px; }
.cw-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 10px; color: #94a3b8; font-size: 12px;
}
.cw-divider::before, .cw-divider::after {
  content: ""; flex: 1; height: 1px; background: #e2e8f0;
}
.cw-form input, .cw-form textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.cw-form textarea { resize: vertical; min-height: 72px; }
.cw-agree {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: #64748b; margin: 2px 0 10px; cursor: pointer;
}
.cw-agree input { margin-top: 2px; }
.cw-submit {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  background: #0ea5e9;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cw-submit:hover { background: #0284c7; }
.cw-submit:disabled { opacity: .6; cursor: not-allowed; }
.cw-form-msg { font-size: 12px; margin: 8px 0 0; }
.cw-form-msg.is-ok { color: #059669; }
.cw-form-msg.is-err { color: #dc2626; }

@media (max-width: 480px) {
  .cw-root { right: 14px; bottom: 14px; }
  .cw-panel { bottom: 68px; }
}

