/* 面包屑导航 */
.detail-breadcrumb {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  position: relative;
  z-index: 100;
}

.detail-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  pointer-events: auto;
}

.detail-breadcrumb a:hover {
  color: var(--white);
}

.detail-breadcrumb .separator {
  color: rgba(255, 255, 255, 0.5);
}

.detail-breadcrumb .current {
  color: var(--white);
  font-weight: 500;
}

/* 页面标题区域 */
.detail-header {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .detail-header {
    overflow: visible;
  }
}

.detail-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 30px 30px;
  z-index: 0;
  pointer-events: none;
}

.detail-header-content {
  position: relative;
  z-index: 1;
}

.detail-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.detail-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.meta-item i {
  font-size: 1.1rem;
}

.detail-price {
  margin-bottom: 2rem;
}

.detail-price .price-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--oc-orange-9);
}

.detail-price .price-period {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

/* 按钮区域通用样式 */
.detail-actions-row {
  margin-top: 1.5rem;
}

.detail-actions-wrapper {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.detail-actions-wrapper .btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 500;
}

.detail-actions-wrapper .btn i {
  margin-right: 8px;
}

.detail-cover {
  position: relative;
  z-index: 1;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-cover-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-cover-placeholder i {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.2);
}

/* 封面图背景层（移动端模糊背景） */
.detail-cover-bg {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  pointer-events: none;
}

.detail-cover-bg-placeholder {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* 移动端遮罩层 - 在模糊背景之上，但在内容之下 */
.detail-header-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(22, 33, 62, 0.7) 50%, rgba(15, 52, 96, 0.7) 100%);
  z-index: 0;
}

@media (max-width: 767.98px) {
  .detail-cover-bg {
    display: block;
    filter: blur(20px);
    opacity: 0.5;
    transform: scale(1);
  }

  .detail-header-overlay {
    display: block;
  }

  .detail-header-content {
    position: relative;
    z-index: 1;
  }

  /* 移动端单列布局 */
  .detail-header .row {
    flex-direction: column;
  }

  .detail-header .col-md-6:first-child,
  .detail-header .col-md-6:last-child,
  .detail-actions-row {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .detail-header-content {
    padding-right: 0;
  }

  .detail-tag {
    padding: 4px 12px;
    font-size: 0.75rem;
  }

  .detail-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .detail-meta {
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .meta-item {
    font-size: 0.85rem;
  }

  .detail-price {
    margin-bottom: 1rem;
  }

  .detail-price .price-value {
    font-size: 1.8rem;
  }

  .detail-price .price-period {
    font-size: 0.85rem;
  }

  /* 按钮区域 - 移动端 */
  .detail-actions-row {
    margin-top: 1rem;
  }

  .detail-actions-wrapper {
    flex-direction: row;
    gap: 12px;
    width: 100%;
  }

  .detail-actions-wrapper .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .detail-actions-wrapper .btn i {
    margin-right: 6px;
  }

  /* 移动端封面图隐藏 */
  .detail-cover {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  /* 平板竖屏：两列布局 - 左侧文字+按钮，右侧封面图 */
  .detail-cover-bg {
    display: block;
    filter: blur(20px);
    opacity: 0.5;
    transform: scale(1);
  }

  .detail-header-overlay {
    display: block;
  }

  .detail-header-content {
    position: relative;
    z-index: 1;
  }

  .detail-header .row {
    align-items: flex-start;
  }

  /* 左侧列 55%，右侧列 45% */
  .detail-header .col-md-6:first-child {
    flex: 0 0 55%;
    max-width: 55%;
  }

  .detail-header .col-md-6:last-child {
    flex: 0 0 45%;
    max-width: 45%;
  }

  .detail-header-content {
    padding-right: 1.5rem;
  }

  .detail-header h1 {
    font-size: 1.6rem;
  }

  /* 按钮保持在左侧列内，横向排列 */
  .detail-actions-row {
    margin-top: 1.5rem;
  }

  .detail-actions-wrapper {
    flex-direction: row;
    gap: 12px;
  }

  .detail-actions-wrapper .btn {
    flex: 1;
    padding: 12px 20px;
  }
}

/* 超小屏幕优化 */
@media (max-width: 575.98px) {
  .detail-header .col-md-6:first-child,
  .detail-header .col-md-6:last-child,
  .detail-actions-row {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .detail-header h1 {
    font-size: 1.3rem;
  }

  .detail-actions-row {
    margin-top: 1rem;
  }

  .detail-actions-wrapper {
    flex-direction: row;
    gap: 10px;
    width: 100%;
  }

  .detail-actions-wrapper .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    flex: 1;
  }
}

/* 内容区域 */
.detail-content-section {
  padding: 60px 0;
  background: var(--bg-light);
  position: relative;
  z-index: 1;
}

.detail-toc {
  position: sticky;
  top: 90px;
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.detail-toc h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
  color: var(--secondary-color);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.toc-link:hover {
  background: var(--bg-light);
  color: var(--primary-color);
  text-decoration: none;
}

.toc-link.active {
  background: var(--primary-color);
  color: var(--white);
}

.toc-link::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.detail-body {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.detail-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--oc-gray-2);
}

.detail-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.detail-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.detail-section h2 i {
  color: var(--primary-color);
}

/* 修复：三级标题比二级标题大的问题 */
.detail-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.section-content {
  color: var(--text-color);
  line-height: 1.8;
}

.section-content a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.section-content a:hover {
  color: var(--oc-blue-7);
  text-decoration: underline;
}

/* 功能特点 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 12px;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--oc-blue-5) 0%, var(--oc-blue-7) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  color: var(--white);
  font-size: 1.2rem;
}

.feature-text h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* 界面截图 */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.screenshot-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.screenshot-item:hover {
  transform: scale(1.02);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* 规格参数 */
.specs-table .table {
  margin: 0;
}

.specs-table th {
  width: 180px;
  background: var(--bg-light);
  font-weight: 600;
  color: var(--secondary-color);
  padding: 1rem 1.25rem;
}

.specs-table td {
  padding: 1rem 1.25rem;
  color: var(--text-color);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--oc-gray-2);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--secondary-color);
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-item.active .faq-question {
  background: var(--bg-light);
  color: var(--primary-color);
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  color: var(--text-light);
  margin: 0;
}

/* 响应式 */
@media (max-width: 991.98px) {
  .detail-toc {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .detail-header {
    padding: 100px 0 50px;
  }

  .detail-header h1 {
    font-size: 1.8rem;
  }

  .detail-price .price-value {
    font-size: 2rem;
  }

  .detail-actions {
    flex-direction: column;
  }

  .detail-actions .btn {
    width: 100%;
  }

  .detail-body {
    padding: 1.5rem;
  }

  .detail-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }

  .detail-section h2 {
    font-size: 1.25rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}
