/*
 * 号令天下 - hltxaaf模板
 * 详情页专用样式表
 */

/* 号码详情卡片 */
.phone-detail-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin: 2rem auto 3rem;
  padding: 0;
  position: relative;
  max-width: 900px;
}

/* 号码展示部分 */
.number-display {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.number-display::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 10px,
    rgba(255, 255, 255, 0.06) 10px,
    rgba(255, 255, 255, 0.06) 20px
  );
  transform: rotate(30deg);
  z-index: 1;
  pointer-events: none;
}

.phone-number {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.carrier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.carrier-badge.mobile {
  background: linear-gradient(135deg, #10b981, #059669);
}

.carrier-badge.unicom {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.carrier-badge.telecom {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* 结果信息区域 */
.result-area {
  padding: 2rem;
}

.info-box {
  background-color: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.info-box h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}

.info-box h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: var(--primary-color);
  margin-right: 0.5rem;
  border-radius: 2px;
}

.info-box p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box p b {
  color: var(--accent-color);
  font-weight: 600;
}

/* 随机号码区域 */
.random-section {
  margin: 3rem 0;
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.random-section h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.random-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

/* 相关知识区域 */
.knowledge-section {
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.knowledge-section h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 2rem;
  position: relative;
}

.knowledge-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background-color: rgba(99, 102, 241, 0.03);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background-color: rgba(99, 102, 241, 0.07);
}

.info-card h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.info-card p {
  line-height: 1.7;
  color: var(--text-secondary);
}

/* 额外信息区域 */
.extra-info {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(to right, rgba(99, 102, 241, 0.05), transparent);
  border-radius: var(--radius-lg);
  position: relative;
}

.extra-info::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
  border-radius: 4px 0 0 4px;
}

.extra-info h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.extra-info p {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.extra-info ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.extra-info ul li {
  margin-bottom: 0.5rem;
}

/* 手机图标 */
.phone-icon {
  width: 40px;
  height: 40px;
  fill: white;
  margin-bottom: 1rem;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .phone-detail-card {
    max-width: 100%;
  }
  
  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .number-display {
    padding: 2.5rem 1.5rem;
  }
  
  .phone-number {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }
  
  .carrier-badge {
    padding: 0.4rem 1.25rem;
    font-size: 1rem;
  }
  
  .result-area {
    padding: 1.5rem;
  }
  
  .info-box {
    padding: 1.5rem;
  }
  
  .random-section,
  .knowledge-section {
    padding: 1.5rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .extra-info {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .number-display {
    padding: 2rem 1rem;
  }
  
  .phone-number {
    font-size: 1.8rem;
  }
  
  .carrier-badge {
    font-size: 0.9rem;
    padding: 0.35rem 1rem;
  }
  
  .info-box h2 {
    font-size: 1.3rem;
  }
} 