/* ========== 产品详情页样式 ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero 内的描边按钮（复用首页 .btn 基础样式） */
.product-hero-actions .btn-outline,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Hero */
.product-hero {
  background: linear-gradient(135deg, #0a2540 0%, #1e3a5f 50%, #0d2137 100%);
  padding: 140px 0 80px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.product-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.product-badge {
  display: inline-block;
  background: rgba(59,130,246,0.2);
  border: 1px solid rgba(59,130,246,0.4);
  color: #60a5fa;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.product-hero h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.product-hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 32px;
}
.product-hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}
.product-hero-actions .btn-primary {
  background: #3b82f6;
  border-color: #3b82f6;
  padding: 14px 36px;
  font-size: 16px;
}
.product-hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  padding: 14px 36px;
  font-size: 16px;
}
.product-hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
.product-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.product-hero-tags span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.product-hero-tags span i {
  color: #34d399;
  font-style: normal;
}

/* Dashboard Visual */
.hero-dashboard {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(10px);
}
.dashboard-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.dashboard-header span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.dashboard-header span:first-child { background: #ef4444; }
.dashboard-header span:nth-child(2) { background: #f59e0b; }
.dashboard-header span:nth-child(3) { background: #22c55e; }
.dashboard-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dash-card {
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
}
.dash-card.wide { grid-column: 1 / -1; }
.dash-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.dash-value {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
.dash-value.warn { color: #f59e0b; }
.dash-trend {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.dash-trend.up { color: #34d399; }
.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
  margin-top: 12px;
}
.dash-chart .bar {
  flex: 1;
  background: rgba(255,255,255,0.15);
  border-radius: 4px 4px 0 0;
  min-height: 8px;
  transition: all .3s;
}
.dash-chart .bar.active {
  background: linear-gradient(to top, #3b82f6, #60a5fa);
}

/* Section */
.product-section {
  padding: 80px 0;
}
.product-section.alt {
  background: #f8fafc;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: 32px;
  color: var(--navy);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-sub);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  transition: all .3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(20,45,100,0.08);
  border-color: #bfdbfe;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; color: #fff; }
.feature-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.feature-icon.green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.feature-icon.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.feature-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.feature-icon.teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.feature-icon.red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.feature-card h4 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 12px;
}
.feature-card > p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 16px;
}
.feature-card ul {
  list-style: none;
  padding: 0;
}
.feature-card ul li {
  font-size: 13px;
  color: #64748b;
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
}
.feature-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

/* Role Tabs */
.role-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.role-tab {
  padding: 12px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  background: #fff;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all .3s;
}
.role-tab:hover {
  border-color: #bfdbfe;
  color: #3b82f6;
}
.role-tab.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}
.role-content {
  display: none;
}
.role-content.active {
  display: block;
  animation: fadeIn .4s ease;
}
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.role-text h3 {
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 24px;
}
.role-text ul {
  list-style: none;
  padding: 0;
}
.role-text ul li {
  font-size: 15px;
  color: #475569;
  line-height: 1.8;
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}
.role-text ul li:last-child { border-bottom: none; }
.role-text ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-size: 18px;
}
.role-text ul li strong {
  color: var(--navy);
}

/* Phone Mockup */
.phone-mockup {
  display: flex;
  justify-content: center;
}
.phone-screen {
  width: 280px;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(20,45,100,0.12);
  border: 8px solid #1e293b;
}
.phone-header {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
}
.phone-list {
  margin-bottom: 16px;
}
.phone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}
.phone-item:last-child { border-bottom: none; }
.phone-item strong { color: var(--navy); font-size: 15px; }
.phone-item strong.green { color: #22c55e; }
.phone-item small { color: #94a3b8; font-size: 12px; }
.phone-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3b82f6;
  margin-right: 10px;
  flex-shrink: 0;
}
.phone-dot.green { background: #22c55e; }
.phone-dot.orange { background: #f59e0b; }
.phone-dot.red { background: #ef4444; }
.phone-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

/* Biz Types */
.biz-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.biz-type {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all .3s;
}
.biz-type:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(20,45,100,0.08);
}
.biz-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.biz-type h4 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 10px;
}
.biz-type p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* Case Detail */
.case-detail {
  background: #fff;
  border-radius: 20px;
  padding: 48px;
  border: 1px solid #e2e8f0;
}
.case-info h4 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
}
.case-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}
.case-meta span {
  font-size: 14px;
  color: #64748b;
  background: #f1f5f9;
  padding: 6px 16px;
  border-radius: 8px;
}
.case-needs h5 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 12px;
}
.case-needs ol {
  padding-left: 20px;
  margin-bottom: 24px;
}
.case-needs ol li {
  font-size: 14px;
  color: #475569;
  line-height: 1.8;
  padding: 8px 0;
}
.case-quote {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 12px;
  padding: 24px 32px;
  border-left: 4px solid #3b82f6;
}
.case-quote p {
  font-size: 16px;
  color: var(--navy);
  font-style: italic;
  margin: 0;
}

/* Advantage Grid */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.advantage-item {
  text-align: center;
  padding: 32px 24px;
}
.advantage-num {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  line-height: 1;
}
.advantage-item h4 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 10px;
}
.advantage-item p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* CTA */
.product-cta {
  background: linear-gradient(135deg, #0a2540 0%, #1e3a5f 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.product-cta h2 {
  font-size: 36px;
  margin-bottom: 12px;
}
.product-cta > p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.btn-white {
  background: #fff;
  color: #0a2540;
  border-color: #fff;
  padding: 14px 40px;
  font-size: 16px;
}
.btn-white:hover {
  background: #f1f5f9;
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 14px 40px;
  font-size: 16px;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-hero-content { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .role-grid { grid-template-columns: 1fr; }
  .biz-types { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .product-hero { padding: 120px 0 60px; }
  .product-hero h1 { font-size: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .role-tabs { flex-wrap: wrap; }
  .advantage-grid { grid-template-columns: 1fr; }
  .case-detail { padding: 24px; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ========== 系统架构图样式（专业版） ========== */
.arch-diagram {
  display: flex;
  gap: 2px;
  align-items: stretch;
  background: #d6e4ff;
  border-radius: 12px;
  padding: 2px;
  overflow: hidden;
}
.arch-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.arch-sidebar {
  width: 170px;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 行 */
.arch-line {
  display: flex;
  gap: 2px;
  align-items: stretch;
}
.arch-tag {
  width: 120px;
  min-width: 120px;
  background: #1e3a5f;
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 8px;
  text-align: center;
}
.arch-tag.big {
  /* 业务应用大标签，随右侧 grid 自然撑高 */
}

/* 单元格区域 */
.arch-cells {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}
.arch-item {
  background: #f0f5ff;
  padding: 10px 4px;
  text-align: center;
  font-size: 13px;
  color: #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  line-height: 1.3;
}
.arch-item.ghost {
  background: transparent;
  visibility: hidden;
}
.arch-item.head {
  background: #e8f0fe;
  color: #1e3a5f;
  font-weight: 600;
}

/* 业务应用网格 */
.arch-biz-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}

/* 底部 */
.arch-footer {
  display: flex;
  gap: 2px;
}
.arch-footer .arch-item.wide {
  flex: 1;
  background: #f0f5ff;
  padding: 12px;
  font-size: 13px;
  text-align: center;
  border-radius: 4px;
}

/* 右侧边栏 */
.arch-side-box {
  background: #eef2ff;
  border-radius: 4px;
  padding: 14px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.arch-side-title {
  background: #1e3a5f;
  color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.arch-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.arch-pills span {
  background: #fff;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 12px;
  text-align: center;
  color: #333;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* 架构图响应式 */
@media (max-width: 1024px) {
  .arch-diagram { flex-direction: column; }
  .arch-sidebar { width: 100%; flex-direction: row; }
  .arch-side-box { flex: 1; }
  .arch-line { flex-direction: column; }
  .arch-tag { width: 100%; min-height: auto; }
  .arch-cells { grid-template-columns: repeat(3, 1fr); }
  .arch-cells .arch-item.ghost { display: none; }
  .arch-biz-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .arch-cells { grid-template-columns: repeat(2, 1fr); }
  .arch-biz-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-sidebar { flex-direction: column; }
}
