/* 阿里云现代风格商品概览页面样式 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* 主内容区域样式 */
.product-overview {
    padding: 40px 0;
    min-height: 100vh;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面标题 */
.page-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 40px;
    text-align: center;
}

/* 区域分组样式 */
.region-section {
    margin-bottom: 60px;
}

.region-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
}

/* 地域筛选器样式 - 阿里云风格 */
.region-filter {
  margin-bottom: 24px;
  padding: 0;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.filter-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.filter-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0 0 16px 0;
  position: relative;
  display: inline-block;
}

.filter-title::after {
  content: '?';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background-color: #e6f4ff;
  color: rgb(8, 84, 220);
  border-radius: 50%;
  font-size: 12px;
  margin-left: 8px;
  cursor: help;
}

/* 地域标签样式 */
.region-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.region-tab {
  position: relative;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s;
  background-color: #fff;
  overflow: hidden;
}

.region-tab:hover {
  border-color: rgb(8, 84, 220);
  box-shadow: 0 2px 4px rgba(24, 144, 255, 0.1);
}

.region-tab.active {
  border-color: rgb(8, 84, 220);
  background-color: #e6f4ff;
}

.tab-content {
  padding: 12px 16px;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
}

.region-name {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  margin-right: 8px;
}

.region-tab.active .region-name {
  color: rgb(8, 84, 220);
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 6px;
  background-color: #ff4d4f;
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  margin-right: 8px;
}

.region-tab.active .discount-badge {
  background-color: #fff;
  color: #ff4d4f;
}

.region-desc {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  line-height: 1.4;
}

/* 地域、商品分类和计费周期筛选器样式 */
/* 筛选器容器样式 */
.region-select-container,
.zone-select-container,
.billing-cycle-container {
  display: inline-block;
  margin-left: 24px;
  vertical-align: middle;
  position: relative;
}

/* 筛选器标签样式 */
.region-label,
.zone-label,
.cycle-label {
  display: inline-block;
  margin-right: 12px;
  font-weight: 500;
  color: #333;
  vertical-align: middle;
  font-size: 14px;
  position: relative;
}

/* 筛选器选择框样式 - 高级美化版本 */
.region-select,
.zone-select,
.cycle-select,
.enhanced-select {
  padding: 10px 40px 10px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  vertical-align: middle;
  min-width: 220px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M8 12L2 6h12l-6 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  outline: none;
  position: relative;
}

/* 悬停效果 */
.region-select:hover,
.zone-select:hover,
.cycle-select:hover,
.enhanced-select:hover {
  border-color: rgb(8, 84, 220);
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%231890ff' d='M8 12L2 6h12l-6 6z'/%3E%3C/svg%3E");
  transform: translateY(-1px);
}

/* 聚焦效果 */
.region-select:focus,
.zone-select:focus,
.cycle-select:focus,
.enhanced-select:focus {
  border-color: rgb(8, 84, 220);
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%231890ff' d='M8 12L2 6h12l-6 6z'/%3E%3C/svg%3E");
}

/* 选中状态效果 */
.region-select:not([value=""]),
.zone-select:not([value=""]),
.cycle-select:not([value=""]),
.enhanced-select:not([value=""]) {
  background-color: #fafafa;
  border-color: rgb(8, 84, 220);
  font-weight: 500;
}

/* 选项样式美化 - 增强版 */
.region-select option,
.zone-select option,
.cycle-select option,
.enhanced-select option {
  padding: 12px 16px;
  font-size: 14px;
  background-color: #fff;
  color: #333;
  transition: background-color 0.2s ease;
}

/* 选项悬停效果 */
.region-select option:hover,
.zone-select option:hover,
.cycle-select option:hover,
.enhanced-select option:hover {
  background-color: #e6f4ff;
  color: rgb(8, 84, 220);
}

/* 选项选中效果 */
.region-select option:checked,
.zone-select option:checked,
.cycle-select option:checked,
.enhanced-select option:checked {
  background-color: #e6f4ff;
  color: rgb(8, 84, 220);
  font-weight: 500;
}

/* 禁用状态 */
.region-select:disabled,
.zone-select:disabled,
.cycle-select:disabled,
.enhanced-select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background-color: #f5f5f5;
  transform: none;
}

/* 下拉列表容器增强样式 */
.region-select-container,
.zone-select-container,
.billing-cycle-container {
  display: inline-block;
  margin-left: 24px;
  vertical-align: middle;
  position: relative;
  transition: all 0.3s ease;
}

/* 下拉动画效果 - 通过伪元素实现更丰富的视觉反馈 */
.region-select::after,
.zone-select::after,
.cycle-select::after,
.enhanced-select::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.region-select:hover::after,
.zone-select:hover::after,
.cycle-select:hover::after,
.enhanced-select:hover::after {
  transform: translateY(-50%) rotate(5deg) scale(1.05);
}

.region-select:focus::after,
.zone-select:focus::after,
.cycle-select:focus::after,
.enhanced-select:focus::after {
  transform: translateY(-50%) rotate(0deg) scale(1.1);
}

/* 增加选项组的样式 */
.region-select optgroup,
.zone-select optgroup,
.cycle-select optgroup,
.enhanced-select optgroup {
  font-weight: 600;
  color: #666;
  background-color: #fafafa;
  padding: 8px 0;
}

.region-select optgroup option,
.zone-select optgroup option,
.cycle-select optgroup option,
.enhanced-select optgroup option {
  padding-left: 24px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .region-select-container,
  .zone-select-container,
  .billing-cycle-container {
    display: block;
    margin: 12px 0;
  }
  
  .region-select,
  .zone-select,
  .cycle-select,
  .enhanced-select {
    min-width: 100%;
  }
  
  .billing-cycle-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .cycle-button {
    width: 100%;
  }
}

.region-select:focus,
.zone-select:focus,
.cycle-select:focus,
.enhanced-select:focus {
  border-color: rgb(8, 84, 220);
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  outline: none;
}

/* 筛选提示信息 */
.filter-tip {
  font-size: 13px;
  color: #666;
  padding: 12px 16px;
  background-color: #f5f5f5;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background-color: #e6f4ff;
  color: rgb(8, 84, 220);
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tip-text {
  flex: 1;
  line-height: 1.5;
}

/* 加载状态样式优化 */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: #666;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 淡入动画效果 */
.fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 自定义下拉列表样式 */
.custom-select-container {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  min-width: 220px;
  margin-left: 24px;
}

.custom-select-display {
  padding: 10px 40px 10px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 200px;
  color: #333;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  vertical-align: middle;
  min-width: 220px;
  position: relative;
  outline: none;
  user-select: none;
}



/* 悬停效果 */
.custom-select-display:hover {
  border-color: rgb(8, 84, 220);
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
  transform: translateY(-1px);
}

/* 聚焦效果 */
.custom-select-container.open .custom-select-display {
  border-color: rgb(8, 84, 220);
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 选项容器 */
.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 打开状态 */
.custom-select-options.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 选项样式 */
.custom-select-option {
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

/* 最后一个选项不显示下边框 */
.custom-select-option:last-child {
  border-bottom: none;
}

/* 悬停效果 */
.custom-select-option:hover {
  background-color: #e6f4ff;
  color: rgb(8, 84, 220);
}

/* 选中状态 */
.custom-select-option.selected {
  background-color: #e6f4ff;
  color: rgb(8, 84, 220);
  font-weight: 500;
}

/* 滚动条样式 */
.custom-select-options::-webkit-scrollbar {
  width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .custom-select-container {
    display: block;
    margin: 12px 0;
  }
  
  .custom-select-display,
  .custom-select-options {
    min-width: 100%;
  }
}

/* 计费周期按钮组样式 */
.billing-cycle-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cycle-button {
  padding: 8px 20px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  white-space: nowrap;
}

.cycle-button:hover {
  border-color: rgb(8, 84, 220);
  color: rgb(8, 84, 220);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
}

.cycle-button.active {
  background-color: rgb(8, 84, 220);
  border-color: rgb(8, 84, 220);
  color: #fff;
  font-weight: 500;
}

.cycle-button.active:hover {
  background-color: rgb(8, 84, 220);
  border-color: rgb(8, 84, 220);
  color: #fff;
}

.cycle-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.cycle-button:focus {
  border-color: rgb(8, 84, 220);
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 产品组样式 */
.product-group {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.product-group:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.group-title {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.group-headline {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.group-tagline {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

/* 产品列表样式 */
.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* 产品卡片样式 */
.product-card {
    background-color: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: rgb(8, 84, 220);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    flex: 1;
    margin-right: 10px;
}

.product-type {
    font-size: 12px;
    color: #fff;
    background-color: rgb(8, 84, 220);
    padding: 2px 8px;
    border-radius: 12px;
}

/* 产品描述 */
.product-description {
    margin-bottom: 15px;
}

.product-description pre {
    font-family: inherit;
    font-size: 14px;
    color: #666;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
}

/* 产品信息 */
.product-info {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.product-price {
    display: flex;
    align-items: baseline;
}

.price-label {
    font-size: 14px;
    color: #666;
    margin-right: 5px;
}

.price-value {
    font-size: 20px;
    font-weight: 600;
    color: #ff4d4f;
    margin-right: 5px;
}

.price-cycle {
    font-size: 14px;
    color: #999;
}

.setup-fee, .stock-info {
    font-size: 14px;
    color: #666;
}

.fee-label, .stock-label {
    margin-right: 5px;
}

.fee-value, .stock-value {
    font-weight: 500;
}

/* 试用标签 */
.trial-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #52c41a;
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    transform: rotate(45deg) translate(30%, -50%);
    transform-origin: top right;
}

/* 操作按钮 */
.product-actions {
    text-align: right;
}

.view-detail-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #fff;
    color: rgb(8, 84, 220);
    border: 1px solid rgb(8, 84, 220);
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-detail-btn:hover {
    background-color: rgb(8, 84, 220);
    color: #fff;
}

.btn-arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.view-detail-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* 加载状态样式 */
.loading-state {
    text-align: center;
    padding: 80px 0;
    color: #666;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid rgb(8, 84, 220);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态样式 */
.error-state {
    text-align: center;
    padding: 80px 0;
    color: #ff4d4f;
}

.error-state p {
    margin-bottom: 20px;
    font-size: 16px;
}

.retry-button {
    padding: 8px 24px;
    background-color: rgb(8, 84, 220);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.retry-button:hover {
    background-color: rgb(8, 84, 220);
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 14px;
    background-color: #fafafa;
    border-radius: 4px;
    margin: 20px 0;
}

/* 筛选提示样式 */
.filter-prompt {
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

/* 通用隐藏类 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
    
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-overview {
        padding: 20px 0;
    }
    
    .page-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .product-group {
        padding: 20px;
    }
    
    .product-list {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .region-title {
        font-size: 20px;
    }
    
    .group-title {
        font-size: 18px;
    }
}