/* ============================================================
   使用手册页面 V7 — 简约大气风格
   参照 productlist-portal 设计语言
   深蓝渐变Hero + 侧边栏 + 文档列表 + CTA
   品牌主色: #0f6ab4 | 前缀: mp- | 部署: /skin/css/manual-portal.css
   ============================================================ */

/* ===== Variables ===== */
:root {
  --mp-primary: #0f6ab4;
  --mp-primary-dark: #0a4d80;
  --mp-primary-light: #e8f4fc;
  --mp-accent: #00c6ff;
  --mp-text-1: #1a1a2e;
  --mp-text-2: #555;
  --mp-text-3: #888;
  --mp-bg: #ffffff;
  --mp-bg-alt: #f7f9fc;
  --mp-border: #eef0f4;
  --mp-border-dark: #e0e3e8;
  --mp-radius: 16px;
  --mp-radius-sm: 10px;
  --mp-shadow: 0 4px 24px rgba(15, 106, 180, 0.08);
  --mp-shadow-hover: 0 12px 40px rgba(15, 106, 180, 0.15);
  --mp-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --mp-max: 1200px;
}

/* ===== Reset (scoped) ===== */
.mp-wrapper *, .mp-wrapper *::before, .mp-wrapper *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
.mp-wrapper {
  font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 15px; color: var(--mp-text-1); line-height: 1.6;
  background: var(--mp-bg); -webkit-font-smoothing: antialiased;
}
.mp-wrapper ul, .mp-wrapper ol { list-style: none; }
.mp-wrapper a { color: inherit; text-decoration: none; transition: var(--mp-transition); }
.mp-wrapper img { display: block; max-width: 100%; height: auto; }
.mp-wrapper h1, .mp-wrapper h2, .mp-wrapper h3, .mp-wrapper h4 { margin: 0; padding: 0; }

/* Hide original secondary nav */
.nav_pc, .nav_phone { display: none !important; }

/* ===== Override original container overflow ===== */
.mp-wrapper .container,
#bann.mp-bann .container,
.mp-cta .container { overflow: visible; }

/* ===== Hero / Banner ===== */
#bann.mp-bann {
  position: relative;
  padding: 140px 20px 80px;
  background: linear-gradient(135deg, #0a1628 0%, #0f6ab4 50%, #0a4d80 100%) !important;
  color: #fff;
  overflow: hidden;
  height: auto !important;
}
#bann.mp-bann::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
#bann.mp-bann::after {
  content: '';
  position: absolute; bottom: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,198,255,.15) 0%, transparent 70%);
  pointer-events: none;
}
#bann.mp-bann .container {
  max-width: var(--mp-max); width: 100%; margin: 0 auto;
  height: auto; display: block; transform: none;
  flex-direction: initial; justify-content: initial; align-items: initial;
  position: relative; z-index: 2; overflow: visible;
}

/* Breadcrumb */
.mp-breadcrumb.mp-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,.55);
  margin-bottom: 28px; list-style: none; padding: 0; flex-wrap: wrap;
}
.mp-breadcrumb li { display: flex; align-items: center; gap: 6px; list-style: none; }
.mp-breadcrumb li::after { content: "/"; color: rgba(255,255,255,.3); font-size: 12px; }
.mp-breadcrumb li:last-child::after { display: none; }
.mp-breadcrumb a { color: rgba(255,255,255,.7); }
.mp-breadcrumb a:hover { color: #fff; }
.mp-breadcrumb li:last-child { color: rgba(255,255,255,.9); }

/* Hero content */
.mp-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 30px; font-size: 13px; color: rgba(255,255,255,.8);
  margin-bottom: 24px; backdrop-filter: blur(8px);
}
.mp-hero-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mp-accent); box-shadow: 0 0 8px var(--mp-accent);
}
.mp-hero-title {
  font-size: 40px; font-weight: 700; color: #fff;
  letter-spacing: 1px; line-height: 1.3; margin-bottom: 16px;
}
.mp-hero-desc {
  font-size: 17px; color: rgba(255,255,255,.75); line-height: 1.8; margin-bottom: 32px; max-width: 640px;
}
.mp-hero-stats {
  display: flex; flex-wrap: wrap; gap: 40px;
}
.mp-hero-stat .num {
  font-size: 32px; font-weight: 700; color: var(--mp-accent); line-height: 1; margin-bottom: 4px;
}
.mp-hero-stat .label {
  font-size: 14px; color: rgba(255,255,255,.6);
}

/* ===== Main Layout ===== */
.mp-main {
  padding: 64px 0 80px; background: var(--mp-bg);
}
.mp-main .container {
  max-width: var(--mp-max); width: 100%; margin: 0 auto; overflow: visible;
}
.mp-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 40px;
  align-items: start;
}

/* ===== Sidebar ===== */
.mp-sidebar {
  position: sticky; top: 90px;
}
.mp-sidebar-block {
  margin-bottom: 24px;
}
.mp-sidebar-title {
  font-size: 15px; font-weight: 700; color: var(--mp-text-1);
  padding: 0 0 14px; margin-bottom: 14px;
  border-bottom: 2px solid var(--mp-primary);
  display: flex; align-items: center; gap: 8px;
}
.mp-sidebar-title::before {
  content: ''; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--mp-primary), var(--mp-accent));
}
.mp-sidebar-nav {
  display: flex; flex-direction: column; gap: 2px;
}
.mp-sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: var(--mp-radius-sm);
  font-size: 14px; color: var(--mp-text-2); transition: var(--mp-transition);
  border-left: 3px solid transparent;
}
.mp-sidebar-nav a:hover {
  background: var(--mp-primary-light); color: var(--mp-primary);
  border-left-color: var(--mp-primary);
}
.mp-sidebar-nav a.active {
  background: var(--mp-primary-light); color: var(--mp-primary);
  font-weight: 600; border-left-color: var(--mp-primary);
}
.mp-sidebar-nav a .mp-nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mp-border-dark); transition: var(--mp-transition);
}
.mp-sidebar-nav a:hover .mp-nav-dot,
.mp-sidebar-nav a.active .mp-nav-dot {
  background: var(--mp-primary);
}

/* Sidebar contact card */
.mp-sidebar-contact {
  background: linear-gradient(135deg, var(--mp-primary), var(--mp-primary-dark));
  border-radius: var(--mp-radius); padding: 24px 20px; color: #fff;
  position: relative; overflow: hidden;
}
.mp-sidebar-contact::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.mp-sidebar-contact h4 {
  font-size: 16px; font-weight: 700; margin-bottom: 8px; position: relative;
}
.mp-sidebar-contact p {
  font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 16px; position: relative;
}
.mp-sidebar-contact .mp-contact-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 8px;
  background: var(--mp-accent); color: #0a1628;
  font-size: 13px; font-weight: 600; position: relative;
}
.mp-sidebar-contact .mp-contact-btn:hover {
  background: #00b4e6; transform: translateY(-2px);
}

/* ===== Document List ===== */
.mp-content { min-width: 0; }
.mp-content-head {
  margin-bottom: 24px;
}
.mp-content-head h2 {
  font-size: 26px; font-weight: 700; color: var(--mp-text-1);
}

.mp-doc-list {
  border-top: 1px solid var(--mp-border);
}
.mp-doc-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 16px; border-bottom: 1px solid var(--mp-border);
  transition: var(--mp-transition);
  border-radius: 0;
}
.mp-doc-item:hover {
  background: var(--mp-bg-alt); padding-left: 24px;
  border-radius: var(--mp-radius-sm); border-color: transparent;
}
.mp-doc-item .doc-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--mp-primary-light); color: var(--mp-primary);
}
.mp-doc-item .doc-info { flex: 1; min-width: 0; }
.mp-doc-item .doc-info h4 {
  font-size: 16px; font-weight: 600; color: var(--mp-text-1);
  margin-bottom: 4px; transition: var(--mp-transition);
}
.mp-doc-item:hover .doc-info h4 { color: var(--mp-primary); }
.mp-doc-item .doc-info p {
  font-size: 13px; color: var(--mp-text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-doc-item .doc-meta {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.mp-doc-item .doc-tag {
  font-size: 12px; padding: 3px 12px; border-radius: 6px;
  background: var(--mp-bg-alt); color: var(--mp-text-3); font-weight: 500;
}
.mp-doc-item .doc-date {
  font-size: 13px; color: var(--mp-text-3); white-space: nowrap;
}
.mp-doc-item .doc-arrow {
  color: var(--mp-text-3); transition: var(--mp-transition);
}
.mp-doc-item:hover .doc-arrow {
  color: var(--mp-primary); transform: translateX(4px);
}

/* ===== Pagination ===== */
.mp-pagination {
  margin-top: 48px; display: flex; justify-content: center;
}
.mp-pagination .pagebar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.mp-pagination .pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; }
.mp-pagination a,
.mp-pagination .page-item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--mp-border-dark); border-radius: 8px;
  font-size: 14px; color: var(--mp-text-2); transition: var(--mp-transition);
  list-style: none; text-decoration: none;
}
.mp-pagination a:hover {
  border-color: var(--mp-primary); color: var(--mp-primary); background: var(--mp-primary-light);
}
.mp-pagination .st { font-weight: 600; }
.mp-no-data {
  text-align: center; padding: 60px 20px; color: var(--mp-text-3); font-size: 15px;
}

/* ===== CTA ===== */
.mp-cta {
  position: relative; padding: 80px 0; overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #0f6ab4 50%, #0a4d80 100%);
}
.mp-cta::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.mp-cta::after {
  content: ''; position: absolute; top: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,198,255,.15) 0%, transparent 70%);
  pointer-events: none;
}
.mp-cta .container { max-width: 760px; width: 100%; margin: 0 auto; text-align: center; position: relative; z-index: 2; overflow: visible; }
.mp-cta h2 {
  font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 16px;
}
.mp-cta p {
  font-size: 17px; color: rgba(255,255,255,.75); line-height: 1.8; margin-bottom: 36px;
}
.mp-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.mp-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; border-radius: 10px;
  font-size: 15px; font-weight: 600; transition: var(--mp-transition);
}
.mp-cta-btn--light {
  background: var(--mp-accent); color: #0a1628;
}
.mp-cta-btn--light:hover {
  background: #00b4e6; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 198, 255, 0.3);
}
.mp-cta-btn--outline {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
}
.mp-cta-btn--outline:hover {
  border-color: #fff; background: rgba(255,255,255,.1);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .mp-layout { grid-template-columns: 220px 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  #bann.mp-bann { padding: 130px 16px 56px; height: auto !important; }
  #bann.mp-bann .container { height: auto !important; }
  .mp-hero-title { font-size: 26px; }
  .mp-hero-desc { font-size: 15px; margin-bottom: 24px; }
  .mp-hero-stats { gap: 24px; }
  .mp-hero-stat .num { font-size: 26px; }
  .mp-hero-stat .label { font-size: 13px; }
  .mp-main { padding: 40px 0 56px; }
  .mp-layout { grid-template-columns: 1fr; gap: 28px; }
  .mp-sidebar { position: static; }
  .mp-sidebar-block { margin-bottom: 20px; }
  .mp-sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .mp-sidebar-nav a { padding: 8px 14px; border-left: none; border: 1px solid var(--mp-border); border-radius: 20px; font-size: 13px; }
  .mp-sidebar-nav a.active { border-color: var(--mp-primary); }
  .mp-sidebar-nav a .mp-nav-dot { display: none; }
  .mp-content-head h2 { font-size: 22px; }
  .mp-doc-item { flex-wrap: wrap; padding: 16px 12px; }
  .mp-doc-item .doc-meta { width: 100%; justify-content: space-between; margin-top: 4px; }
  .mp-pagination { margin-top: 32px; }
  .mp-pagination a, .mp-pagination .page-item { min-width: 36px; height: 36px; font-size: 13px; }
  .mp-cta { padding: 48px 0; }
  .mp-cta h2 { font-size: 24px; }
  .mp-cta p { font-size: 15px; }
}

@media (max-width: 480px) {
  #bann.mp-bann { padding: 120px 12px 44px; }
  .mp-hero-title { font-size: 22px; }
  .mp-hero-stats { gap: 20px; }
  .mp-hero-stat .num { font-size: 22px; }
  .mp-doc-item .doc-info p { display: none; }
  .mp-cta-actions { flex-direction: column; }
  .mp-cta-btn { width: 100%; justify-content: center; }
}
