/* ========================================
   SmartStor Docs页面统一样式
   版本: 1.0.0
   更新: 2026-03-08
   适用于: docs1.html ~ docs12.html
   ======================================== */

/* 内容区域基础样式 */
.content-wrapper {
  background: #f4f6f9;
}

.content-header h5 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--color-primary);
}

/* 区块样式 */
.doc-section {
  margin: 20px 0;
  padding: 25px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--color-primary);
}

.doc-section h6 {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-section h6 i {
  color: var(--color-primary);
}

.doc-section p,
.doc-section li {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.doc-section ul,
.doc-section ol {
  padding-left: 25px;
}

.doc-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* 价格表样式 */
.price-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
  background: #fff;
}

.price-table thead {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
}

.price-table th {
  padding: 18px 15px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.price-table th.recommended {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  position: relative;
}

.price-table th.recommended::before {
  content: '🔥 推荐';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-danger);
  color: #fff;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.price-table td {
  padding: 15px;
  text-align: center;
  border: 1px solid #dee2e6;
  color: var(--text-secondary);
}

.price-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  background: #f8f9fa;
}

.price-table .highlight-col {
  background: var(--color-primary-light);
  font-weight: 600;
}

.price-table .check-icon {
  color: var(--color-success);
  font-size: 18px;
}

.price-table .cross-icon {
  color: var(--color-danger);
  font-size: 18px;
}

.price-label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 5px;
}

/* 版本卡片样式 */
.version-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 25px 0;
}

.version-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s;
  position: relative;
}

.version-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--color-primary);
}

.version-card.recommended {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(30, 144, 255, 0.2);
}

.version-card.recommended::before {
  content: '🔥 最受欢迎';
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.version-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.version-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 5px;
}

.version-price small {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}

.version-desc {
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.version-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.version-features li {
  padding: 10px 0;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.version-features li i {
  color: var(--color-success);
  margin-top: 3px;
  flex-shrink: 0;
}

.version-features li.disabled {
  opacity: 0.5;
}

.version-features li.disabled i {
  color: var(--color-danger);
}

.version-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.version-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
  color: #fff;
}

.version-btn.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.version-btn.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

/* 下载列表样式 */
.download-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.download-item {
  background: #fff;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.download-info {
  flex: 1;
  min-width: 200px;
}

.download-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.download-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.download-meta span {
  margin-right: 15px;
}

.download-actions {
  display: flex;
  gap: 10px;
}

.download-btn {
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.download-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  color: #fff;
}

.download-btn.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.download-btn.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* 文档列表样式 */
.doc-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.doc-list-item {
  background: #fff;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 6px;
  border-left: 3px solid var(--color-primary);
  transition: all 0.3s;
}

.doc-list-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doc-list-item a {
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.doc-list-item a i {
  color: var(--color-primary);
  font-size: 18px;
}

.doc-list-item a:hover {
  color: var(--color-primary);
}

/* 联系卡片样式 */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.contact-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  font-size: 48px;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.contact-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.contact-info {
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-link:hover {
  text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .doc-section {
    padding: 20px 15px;
  }

  .price-table-wrapper {
    margin: 15px -15px;
  }

  .version-cards {
    grid-template-columns: 1fr;
  }

  .download-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-actions {
    width: 100%;
    flex-direction: column;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* 提示框样式 */
.alert-box {
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert-box i {
  font-size: 20px;
  margin-top: 2px;
}

.alert-info {
  background: #e7f3ff;
  border-left: 4px solid var(--color-info);
  color: #004085;
}

.alert-info i {
  color: var(--color-info);
}

.alert-success {
  background: #d4edda;
  border-left: 4px solid var(--color-success);
  color: #155724;
}

.alert-success i {
  color: var(--color-success);
}

.alert-warning {
  background: #fff3cd;
  border-left: 4px solid var(--color-warning);
  color: #856404;
}

.alert-warning i {
  color: var(--color-warning);
}

/* 按钮组 */
.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.btn {
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  color: #fff;
}

.btn-success {
  background: var(--color-success);
  color: #fff;
}

.btn-success:hover {
  background: #0d9668;
  color: #fff;
}

.price-calculator {
  margin: 15px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.calculator-item {
  margin-bottom: 15px;
}

.calculator-item:last-child {
  margin-bottom: 0;
}

.calculator-item label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #495057;
  font-size: 14px;
}

.calculator-item span {
  color: var(--color-primary);
  font-weight: 700;
}

.calculator-item input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #dee2e6;
  outline: none;
  -webkit-appearance: none;
}

.calculator-item input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
}

.calculator-item input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: none;
}
