/* 腾讯云风格产品页面样式 */
* {
  box-sizing: border-box;
}

body {
  background: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #262626;
}

/* 产品页面容器 */
.tc-product-page {
  min-height: 100vh;
  background: #f5f5f5;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.tc-product-page.loaded {
  opacity: 1;
  transform: translateY(0);
}

.tc-page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  align-items: start;
}

/* 主内容区域 */
.tc-main-content {
  background: transparent;
}

.tc-config-container {
  background: transparent;
}

/* 页面头部 */
.tc-page-header {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 32px;
  margin-bottom: 24px;
  text-align: center;
}

.tc-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 14px;
  color: #8c8c8c;
}

.tc-breadcrumb-item {
  color: #8c8c8c;
  transition: color 0.3s ease;
}

.tc-breadcrumb-item.active {
  color: #1890ff;
  font-weight: 500;
}

.tc-breadcrumb-separator {
  margin: 0 8px;
  color: #d9d9d9;
}

.tc-page-title {
  font-size: 32px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tc-page-title:hover {
  color: #1890ff;
  transform: translateY(-2px);
}

.tc-page-icon {
  margin-right: 12px;
  font-size: 28px;
}

.tc-page-description {
  font-size: 16px;
  color: #595959;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 配置表单包装器 */
.tc-config-wrapper {
  background: transparent;
}

/* 侧边栏 */
.tc-sidebar {
  background: transparent;
}

.tc-sidebar-content {
  position: sticky;
  top: 20px;
}

/* 移动端底部摘要 */
.tc-mobile-summary {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-mobile-summary.show {
  transform: translateY(0);
}

.tc-mobile-summary.enhanced {
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
  border-top: 2px solid #1890ff;
}

.tc-mobile-summary.enhanced .tc-mobile-buy-btn {
  animation: pulse 1.5s ease-in-out infinite;
}

.tc-mobile-summary-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}

.tc-mobile-price {
  flex: 1;
}

.tc-mobile-price-label {
  display: block;
  font-size: 12px;
  color: #8c8c8c;
  margin-bottom: 2px;
}

.tc-mobile-price-value {
  font-size: 18px;
  font-weight: 700;
  color: #1890ff;
}

.tc-mobile-buy-btn {
  flex-shrink: 0;
  width: 120px;
  height: 42px;
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.tc-mobile-buy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.tc-mobile-buy-btn:hover::before {
  left: 100%;
}

.tc-mobile-buy-btn:hover {
  background: linear-gradient(135deg, #096dd9 0%, #0050b3 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
}

.tc-mobile-buy-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(24, 144, 255, 0.3);
}

.tc-mobile-buy-btn:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  animation: none;
}

.tc-mobile-buy-btn.clicking {
  transform: scale(0.95);
  background: linear-gradient(135deg, #0050b3 0%, #003a8c 100%);
  box-shadow: 0 1px 4px rgba(24, 144, 255, 0.2);
  transition: all 0.1s ease;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .tc-mobile-buy-btn:hover {
    transform: none;
  }
  
  .tc-mobile-buy-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .tc-page-container {
    max-width: 1200px;
    grid-template-columns: 1fr 360px;
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .tc-page-container {
    grid-template-columns: 1fr 320px;
    gap: 16px;
    padding: 16px;
  }
  
  .tc-page-header {
    padding: 24px;
  }
  
  .tc-page-title {
    font-size: 28px;
  }
  
  .tc-page-description {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .tc-page-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px;
  }
  
  .tc-sidebar {
    order: -1;
  }
  
  .tc-page-header {
    padding: 20px;
    text-align: left;
  }
  
  .tc-breadcrumb {
    justify-content: flex-start;
  }
  
  .tc-page-title {
    font-size: 24px;
    justify-content: flex-start;
  }
  
  .tc-page-description {
    text-align: left;
  }
  
  .tc-mobile-summary {
    display: block;
    animation: slideUpIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  
  /* 为移动端底部摘要添加底部间距 */
  body {
    padding-bottom: 80px;
  }
}

@media (max-width: 576px) {
  .tc-page-container {
    padding: 8px;
  }
  
  .tc-page-header {
    padding: 16px;
  }
  
  .tc-page-title {
    font-size: 20px;
    flex-direction: column;
    text-align: center;
  }
  
  .tc-page-icon {
    margin-right: 0;
    margin-bottom: 8px;
  }
  
  .tc-page-description {
    font-size: 14px;
    text-align: center;
  }
  
  .tc-mobile-summary-content {
    padding: 10px 16px;
    gap: 12px;
  }
  
  .tc-mobile-buy-btn {
    width: 110px;
    height: 38px;
    font-size: 14px;
    border-radius: 6px;
  }
  
  .tc-mobile-summary-content {
    gap: 10px;
  }
  
  .tc-mobile-price-value {
    font-size: 16px;
  }
}

/* 加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpIn {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.25);
  }
  50% {
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
  }
  100% {
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.25);
  }
}

.tc-page-header,
.tc-config-wrapper,
.tc-sidebar-content {
  animation: fadeInUp 0.6s ease forwards;
}

.tc-config-wrapper {
  animation-delay: 0.1s;
}

.tc-sidebar-content {
  animation-delay: 0.2s;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 优化对话框和模态框 */
.modal-content {
  border-radius: 8px;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.modal-header {
  background: #fafbfc;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 8px 8px 0 0;
}

.modal-title {
  color: #262626;
  font-weight: 600;
}

/* 过渡动画优化 */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tc-product-page * {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
