/* ═══════════════════════════════════════════════════════════════════
   SSLS.VIP Theme — product.css
   云服务器 / 物理服务器 / 主机产品页
   ═══════════════════════════════════════════════════════════════════ */

/* ─── 产品列表 ─── */
.product-list-section { padding: 80px 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

.product-card, .product-item {
  background: linear-gradient(180deg, var(--bg-elev-1), var(--bg-elev-2));
  border: 1px solid var(--gold-veil);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.product-card:hover, .product-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: var(--shadow-card);
}
.product-card.featured, .product-item.featured {
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.05), transparent 50%),
    linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-3));
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.product-card.featured::before, .product-item.featured::before {
  content: 'RECOMMENDED · 推荐';
  position: absolute;
  top: -1px; right: 28px;
  background: linear-gradient(135deg, var(--gold-glow), var(--gold));
  color: var(--bg-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border-radius: 0 0 6px 6px;
}

.product-card h3, .product-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.product-card .cn-name, .product-item .cn-name {
  font-family: var(--font-cn);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 20px;
}
.product-card .specs, .product-item .specs {
  list-style: none;
  padding: 20px 0;
  border-top: 1px solid var(--gold-veil);
  border-bottom: 1px solid var(--gold-veil);
  margin-bottom: 20px;
}
.product-card .specs li, .product-item .specs li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.product-card .specs li .label, .product-item .specs li .label {
  color: var(--ink-mute);
}
.product-card .specs li .value, .product-item .specs li .value {
  font-family: var(--font-mono);
  color: var(--gold-light);
  font-weight: 500;
}

.product-card .price-row, .product-item .price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.product-card .price, .product-item .price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 28px;
  color: var(--gold-light);
}
.product-card .price .currency, .product-item .price .currency {
  font-size: 16px;
  color: var(--ink-mute);
  margin-right: 2px;
}
.product-card .price .period, .product-item .price .period {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 400;
  margin-left: 4px;
}

.product-card .btn, .product-item .btn { width: 100%; padding: 12px; }

/* ─── 产品购买配置页 (buy_cloud / buy_server) ─── */
.product-buy-section {
  padding: 60px 0 80px;
}
.product-buy-section .layout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 1100px) { .product-buy-section .layout-grid { grid-template-columns: 1fr; } }

.buy-config-panel, .buy-form-panel {
  background: linear-gradient(180deg, var(--bg-elev-1), var(--bg-elev-2));
  border: 1px solid var(--gold-veil);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.buy-config-panel .config-group, .buy-form-panel .config-group {
  padding: 18px 0;
  border-bottom: 1px solid var(--gold-veil);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
}
.buy-config-panel .config-group:last-child, .buy-form-panel .config-group:last-child { border-bottom: none; }
.config-group .config-label {
  font-family: var(--font-cn);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  padding-top: 8px;
}
.config-group .config-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* image-item 版本选择器 */
.image-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--gold-veil);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 13px;
  transition: all 0.2s;
  position: relative;
}
.image-item:hover {
  border-color: var(--gold-line);
  color: var(--gold-light);
}
.image-item.active, .image-item.hover {
  background: linear-gradient(135deg, var(--gold-glow), var(--gold)) !important;
  border-color: var(--gold) !important;
  color: var(--bg-deep) !important;
  font-weight: 700;
}
.image-item img {
  max-height: 20px;
  filter: brightness(0) invert(1);
}
.image-item.active img, .image-item.hover img {
  filter: brightness(0);
}

/* 版本下拉 */
.version-select, .image-item-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-1));
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: none;
  z-index: 30;
}
.image-item:hover .version-select,
.image-item.hover .version-select {
  display: block;
}
.version-select li {
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: var(--radius-xs);
  list-style: none;
}
.version-select li:hover { background: var(--gold-veil); color: var(--gold-light); }
.version-select li.active { background: var(--gold-veil); color: var(--gold); font-weight: 600; }

/* 价格汇总 sidebar */
.buy-summary {
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-3));
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.buy-summary h3 {
  font-family: var(--font-cn);
  font-weight: 700;
  font-size: 16px;
  color: var(--gold-light);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.buy-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--gold-veil);
}
.buy-summary .summary-row .label { color: var(--ink-mute); }
.buy-summary .summary-row .value { color: var(--ink); font-family: var(--font-mono); }
.buy-summary .total-row {
  padding: 20px 0 16px;
  border-bottom: none;
}
.buy-summary .total-row .total-label {
  font-family: var(--font-cn);
  font-weight: 700;
  color: var(--gold-light);
  font-size: 14px;
}
.buy-summary .total-row .total-amount {
  font-family: var(--font-mono);
  color: var(--gold-glow);
  font-size: 28px;
  font-weight: 600;
}
.buy-summary .buy-btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-glow), var(--gold));
  color: var(--bg-deep);
  font-weight: 700;
  padding: 14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-top: 16px;
}
.buy-summary .buy-btn-checkout:hover {
  box-shadow: var(--shadow-gold-strong);
  transform: translateY(-1px);
}

/* ─── 服务器机型规格表 ─── */
.server-spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: linear-gradient(180deg, var(--bg-elev-1), var(--bg-elev-2));
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.server-spec-table thead {
  background: var(--bg-deep);
}
.server-spec-table thead th {
  padding: 18px 16px;
  font-family: var(--font-cn);
  font-weight: 700;
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: left;
  border-bottom: 1px solid var(--gold-line);
}
.server-spec-table tbody tr:hover { background: var(--gold-veil); }
.server-spec-table tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--gold-veil);
  color: var(--ink-soft);
  font-size: 13.5px;
}
.server-spec-table tbody td .cpu-info,
.server-spec-table tbody td .ram-info,
.server-spec-table tbody td .disk-info {
  font-family: var(--font-mono);
  color: var(--ink);
  font-size: 13px;
  display: block;
}
.server-spec-table tbody td .price-cell {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--gold-light);
}
