/* ========================================
   Server Page Styles - 2026 Version
   云服务器页面样式
======================================== */

:root {
  --primary: #2B6DE8;
  --primary-light: #5B8DEF;
  --primary-dark: #1E5AC7;
  --accent: #FF6A00;
  --success: #52c41a;
  --text-primary: #1a1a2e;
  --text-secondary: #5a6689;
  --text-muted: #8c94a8;
  --bg-light: #f7f9fc;
  --border-light: #e8ecf3;
  --white: #ffffff;
}

/* ========== Hero Section ========== */
.server-hero {
  position: relative;
  padding: 140px 0 100px;
  margin-top: 20px;
  background: linear-gradient(135deg, #2B6DE8 0%, #6366F1 50%, #8B5CF6 100%);
  overflow: hidden;
}

.server-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.hero-circle-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  animation: floatSlow 10s ease-in-out infinite;
}

.hero-circle-2 {
  width: 350px;
  height: 350px;
  bottom: -80px;
  left: -80px;
  animation: floatSlow 12s ease-in-out infinite reverse;
}

.hero-circle-3 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 25%;
  animation: floatSlow 8s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.02); }
}

.server-hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.server-hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.server-hero-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.server-hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.9);
  line-height: 1.9;
  margin-bottom: 32px;
}

.server-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  font-size: 14px;
  color: #fff;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.1);
}

.server-hero-btns {
  display: flex;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #fff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.server-hero-illustration {
  flex-shrink: 0;
  width: 400px;
  animation: floatSlow 6s ease-in-out infinite;
}

.server-hero-illustration svg {
  width: 100%;
  height: auto;
}

/* ========== Categories Section ========== */
.server-categories {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 70px;
  z-index: 90;
}

.category-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  overflow-x: auto;
}

.category-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-light);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s;
}

.category-item:hover {
  background: rgba(43,109,232,0.08);
  color: var(--primary);
}

.category-item.active {
  background: var(--primary);
  color: #fff;
}

.category-item.hot {
  color: #FF6A00;
}

.category-item.hot:hover {
  background: rgba(255,106,0,0.08);
}

.hot-tag {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #FF6A00, #FF8C00);
  border-radius: 10px;
  font-size: 10px;
  color: #fff;
}

/* ========== Packages Section ========== */
.server-packages {
  padding: 20px 0;
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.package-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.4s;
  opacity: 0;
  transform: translateY(30px);
}

.package-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(43,109,232,0.15);
}

.package-card.recommend {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, rgba(43,109,232,0.03) 0%, #fff 100%);
}

.recommend-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.package-card.physical {
  background: linear-gradient(180deg, #fef6e8 0%, #fff 50%);
}

.physical-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #FF6A00, #FF8C00);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.package-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-light);
}

.package-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.package-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.package-specs {
  margin-bottom: 20px;
}

.spec-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(43,109,232,0.08);
  border-radius: 8px;
  color: var(--primary);
  margin-right: 12px;
}

.spec-label {
  width: 50px;
  font-size: 13px;
  color: var(--text-muted);
}

.spec-value {
  flex: 1;
  text-align: right;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.package-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: var(--bg-light);
  border-radius: 12px;
}

.price-item {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-item.month {
  color: var(--accent);
}

.price-item.year {
  color: var(--primary);
}

.price-ori {
  display: block;
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 2px;
}

.price-num {
  font-size: 28px;
  font-weight: 700;
}

.price-unit {
  font-size: 14px;
  font-weight: 500;
}

.price-item.year .price-num {
  font-size: 22px;
}

.price-item.year .price-unit {
  font-size: 13px;
}

.discount {
  display: inline-block;
  margin-left: 4px;
  padding: 3px 8px;
  background: linear-gradient(135deg, #ff4d4f, #ff7875);
  border-radius: 4px;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  color: #fff;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(255,77,79,0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.price-item.month .discount {
  background: linear-gradient(135deg, #ff4d4f, #ff7875);
}

.price-item.year .discount {
  background: linear-gradient(135deg, #722ed1, #9254de);
  box-shadow: 0 2px 6px rgba(114,46,209,0.3);
}

.package-actions {
  text-align: center;
}

.btn-buy {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43,109,232,0.35);
}

.custom-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: rgba(43,109,232,0.06);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}

.custom-tip a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.custom-tip a:hover {
  text-decoration: underline;
}

/* ========== Advantages Section ========== */
.server-advantages {
  padding: 80px 0;
  background: #fff;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-card {
  padding: 32px 24px;
  background: var(--bg-light);
  border-radius: 16px;
  text-align: center;
  transition: all 0.4s;
  opacity: 0;
  transform: translateY(30px);
}

.advantage-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.advantage-card:hover {
  background: #fff;
  box-shadow: 0 10px 40px rgba(43,109,232,0.12);
  transform: translateY(-5px);
}

.advantage-icon {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(43,109,232,0.1) 0%, rgba(139,92,246,0.1) 100%);
  border-radius: 20px;
  margin-bottom: 20px;
  color: var(--primary);
  transition: all 0.3s;
}

.advantage-card:hover .advantage-icon {
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
  color: #fff;
  transform: scale(1.1);
}

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

.advantage-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== FAQ Section ========== */
.server-faq {
  padding: 80px 0;
  background: var(--bg-light);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.faq-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.4s;
  opacity: 0;
  transform: translateY(30px);
}

.faq-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.faq-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.faq-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--primary);
}

.faq-card-header h4 {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-more {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.faq-more:hover {
  color: var(--primary);
}

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

.faq-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #f0f0f0;
}

.faq-list li:last-child {
  border-bottom: none;
}

.faq-list a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.faq-list a:hover {
  color: var(--primary);
  padding-left: 8px;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .server-hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .server-hero-content {
    max-width: 100%;
  }
  
  .server-hero-features {
    justify-content: center;
  }
  
  .server-hero-btns {
    justify-content: center;
  }
  
  .server-hero-illustration {
    width: 300px;
    margin-top: 40px;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .server-hero {
    padding: 100px 0 60px;
  }
  
  .server-hero-subtitle br {
    display: none;
  }
  
  .server-hero-btns {
    flex-direction: column;
  }
  
  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
  }
  
  .server-hero-illustration {
    display: none;
  }
  
  .category-nav {
    gap: 6px;
    padding: 12px 0;
    -webkit-overflow-scrolling: touch;
  }
  
  .category-item {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .packages-grid {
    grid-template-columns: 1fr;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .advantage-card {
    padding: 24px 20px;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .server-packages,
  .server-advantages,
  .server-faq {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .feature-tag {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .package-card {
    padding: 20px;
  }
  
  .price-num {
    font-size: 36px;
  }
}

/* ========================================
   Server Buy Page Styles
   云服务器购买页面样式
======================================== */

/* 购买页面容器 */
.server-buy-page {
  background: var(--bg-light);
  min-height: 100vh;
}

/* 购买页 Hero - 紧凑版 */
.server-hero-compact {
  padding: 60px 0 50px;
}

.server-hero-compact .server-hero-title {
  font-size: 36px;
}

.server-hero-compact .server-hero-subtitle {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.server-hero-compact .server-hero-features {
  margin-bottom: 0;
}

.server-hero-compact .server-hero-illustration {
  width: 320px;
}

/* 主布局 */
.server-buy-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 50px;
}

/* 左右布局 */
.buy-main-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.buy-config-area {
  flex: 1;
  min-width: 0;
}

.buy-sidebar {
  width: 340px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
}

/* 配置卡片 */
.config-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.config-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #f8faff 0%, #fff 100%);
  border-bottom: 1px solid var(--border-light);
}

.config-card-header .iconify {
  color: var(--primary);
  flex-shrink: 0;
}

.config-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.config-card-body {
  padding: 24px;
}

/* 配置项 */
.config-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

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

.config-label {
  width: 100px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 36px;
}

/* 规格按钮组 */
.spec-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 8px 16px;
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.spec-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

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

/* 滑块包装 */
.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

/* 配置输入框 */
.config-input {
  width: 100%;
  max-width: 300px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.config-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 配置行 */
.config-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  min-height: 36px;
}

.config-row:last-child {
  margin-bottom: 0;
}

.config-label {
  width: 100px;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 36px;
  text-align: right;
  padding-right: 16px;
}

.config-content {
  flex: 1;
  min-width: 0;
}

.config-content::after {
  content: '';
  display: table;
  clear: both;
}

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

.btn-group a,
.btn-group .btn-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 36px;
  padding: 0 16px;
  background: #f5f7fa;
  border: 1px solid #e8ecf3;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-group a:hover,
.btn-group .btn-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0f5ff;
}

.btn-group a.slt,
.btn-group .btn-item.slt {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-color: var(--primary);
  color: #fff;
}

.btn-group a.disable,
.btn-group .btn-item.disable {
  background: #f5f5f5;
  border-color: #ddd;
  color: #bbb;
  cursor: not-allowed;
}

/* 地域按钮 */
.line-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.line-buttons .line-type-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.line-buttons .line-type-btn:hover {
  border-color: var(--primary);
  background: #f0f5ff;
  color: var(--primary);
}

.line-buttons .line-type-btn.slt {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.line-buttons .line-type-btn.disable {
  background: #f5f5f5;
  border-color: #eee;
  cursor: not-allowed;
  opacity: 0.6;
}

/* 滑块容器 */
.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider {
  float: left;
  position: relative;
  width: 350px;
  height: 35px;
  padding: 0 8px;
  border: 1px solid #e8ecf3;
  border-left: none;
  background-color: #fff;
  border-radius: 4px;
}

.slider-item-box {
  width: 334px;
}

.slider-item {
  box-sizing: border-box;
  float: left;
  line-height: 35px;
  border-left: 1px solid #e8ecf3;
  text-align: right;
  cursor: pointer;
}

.slider-item:first-child {
  border-left: none;
}

.slider-item-number {
  color: var(--text-primary);
  margin-right: 8px;
  font-size: 13px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.slider-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  padding: 0 8px;
  height: 35px;
  line-height: 35px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  transition: width 0.1s;
  -webkit-transition: width 0.1s;
  border: 1px solid var(--primary);
  border-right: none;
  border-radius: 4px 0 0 4px;
  margin-top: -1px;
}

.slider-range-current {
  width: 334px;
}

.slider-range-item {
  box-sizing: border-box;
  float: left;
  text-align: right;
  border-right: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
}

.slider-range-item:last-child {
  border-right: none;
}

.range-item-number {
  color: #fff;
  margin-right: 8px;
  font-size: 13px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.slider-btn {
  position: absolute;
  top: -3px;
  left: 0;
  width: 16px;
  height: 40px;
  background: url(/images/slide_range_bg.png) no-repeat center;
  cursor: pointer;
  z-index: 3;
  transition: left 0.1s;
  -webkit-transition: left 0.1s;
}

/* 输入框组 */
.input-group {
  display: flex;
  align-items: center;
}

.config-slider-input {
  float: left;
  width: 50px;
  height: 35px;
  border: 1px solid #e8ecf3;
  border-radius: 4px 0 0 4px;
  line-height: 35px;
  text-align: center;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

.config-slider-input:focus {
  border-color: var(--primary);
}

.config-input-unit {
  float: left;
  width: 32px;
  height: 35px;
  border: 1px solid #e8ecf3;
  border-radius: 0 4px 4px 0;
  margin-left: -1px;
  background-color: #f5f7fa;
  line-height: 35px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* 数量控制 */
.number-control {
  display: inline-block;
  position: relative;
  z-index: 10;
  width: 32px;
  height: 32px;
  margin-left: 8px;
}

.number-control span {
  position: absolute;
  left: 0;
  z-index: 11;
  width: 32px;
  height: 15px;
  background: no-repeat center;
  cursor: pointer;
  border-radius: 3px;
}

.number-control-up {
  top: 0;
  background: #f5f7fa url(/images/number_up.png) center no-repeat;
  border: 1px solid #e8ecf3;
}

.number-control-up:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.number-control-down {
  bottom: 0;
  background: #f5f7fa url(/images/number_down.png) center no-repeat;
  border: 1px solid #e8ecf3;
}

.number-control-down:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* 输入框容器 */
.config-input-container {
  float: left;
  margin-left: 12px;
}

.config-input-container::after {
  content: '';
  display: table;
  clear: both;
}

.margin-left-10 {
  margin-left: 10px;
}

/* 清除浮动 */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* 提示信息 */
.config-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 15px;
  padding: 8px 14px;
  background: #fffbe6;
  border-radius: 6px;
  font-size: 13px;
  color: #d48806;
}

.config-tip-content {
  padding: 8px 14px;
  background: #e6f7ff;
  border-radius: 6px;
  font-size: 13px;
  color: #1890ff;
}

.text-muted {
  color: var(--text-muted);
  font-size: 13px;
}

.text-stress {
  color: var(--primary);
  font-weight: 600;
}

.text-primary {
  color: var(--primary);
}

/* 系统选择下拉 */
.selectButton {
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.selectButton dl {
  margin: 0;
}

.selectButton dt {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  min-width: 150px;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.selectButton dt:hover {
  border-color: var(--primary);
}

.selectButton dt.open {
  border-color: var(--primary);
}

.selectButton dt .ico {
  display: none;
}

/* 选中后显示的系统图标 */
.selectButton dt .os-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: none;
}

.selectButton dt .os-icon.show {
  display: block;
}

.selectButton dt .os-icon.windows {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230078d4' d='M3 5.5l7.5-1v7H3v-6zm0 13l7.5 1v-7H3v6zm8.5 1.2L21 21v-8.5h-9.5v7.2zm0-14.4V13H21V3l-9.5 1.3z'/%3E%3C/svg%3E");
}

.selectButton dt .os-icon.linux {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M12.5 2c-1.6 0-2.5 1.5-2.6 3.2 0 .8-.2 1.5-.7 2.2-.6.9-1.5 2-2 3.3-.2.6-.3 1.2-.2 1.8 0 0-.4.5-.8 1.1-.3.4-.7.8-1 1.1-.5.2-.8.4-.8.8-.1.2-.1.4-.1.6 0 .2 0 .4.1.6.1.5.1.9 0 1.2-.3.8-.3 1.4-.1 1.8.2.4.6.6 1.1.7 1 .3 2.3.2 3.4.7 1.1.6 2.3.8 3.2.6.6-.1 1.2-.6 1.5-1.2.7 0 1.5-.3 2.8-.4.9-.1 1.9.3 3.1.2 0 .2.1.3.1.4.5 1 1.4 1.4 2.3 1.3.9-.1 1.9-.6 2.7-1.6.8-.9 2-1.3 2.9-1.8.4-.2.8-.6.8-1 0-.5-.2-1-.9-1.7-.2-.2-.3-.7-.4-1.1-.1-.5-.2-1-.6-1.3-.4-.3-.9-.1-1.4-.1-.7.1-1 .3-1.4.3.5-1.5.3-3-.2-4.3-.6-1.6-1.8-3-2.6-3.9-1-.1-2-2.4-2-4C15 3.5 14.1 2 12.5 2z'/%3E%3C/svg%3E");
}

.selectButton dt .os-icon.centos {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23932279' d='M12 2L2 7v10l10 5 10-5V7L12 2z'/%3E%3Cpath fill='%239ccd2a' d='M12 7l-3 1.5V12l3 1.5L15 12V8.5L12 7z'/%3E%3Cpath fill='%23262577' d='M12 13.5L9 12v3.5l3 1.5 3-1.5V12l-3 1.5z'/%3E%3Cpath fill='%23efe128' d='M12 7V2L6 4.5 9 8.5 12 7z'/%3E%3Cpath fill='%2308aae3' d='M9 8.5L6 4.5 2 7v5l4-2.5 3 1.5V8.5z'/%3E%3C/svg%3E");
}

.selectButton dt .os-icon.ubuntu {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle fill='%23e95420' cx='12' cy='12' r='10'/%3E%3Ccircle fill='%23fff' cx='12' cy='5' r='2'/%3E%3Ccircle fill='%23fff' cx='6' cy='15' r='2'/%3E%3Ccircle fill='%23fff' cx='18' cy='15' r='2'/%3E%3C/svg%3E");
}

.selectButton dt .os-icon.debian {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23a81d33' d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm2.5 14.5c-1 .5-3 .5-4-.5-1.5-1-2-3-1.5-4.5.5-2 2-3 4-3 1 0 2 .5 2.5 1-.5.5-1 1-1.5 1-.5-.5-1-.5-1.5-.5-1.5 0-2.5 1.5-2 3 .5 1.5 2 2 3 1.5.5 0 1-.5 1.5-1 .5.5 1 1 1 1.5-.5.5-1 1-1.5 1.5z'/%3E%3C/svg%3E");
}

.selectButton dt .os-icon.alpine {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230d597f' d='M5.5 16L1 11l5-5 5 5-5.5 5zm8-5L8 6l5.5-5L19 6l-5.5 5zm4 5L12 11l5.5-5 5.5 5-5.5 5z'/%3E%3C/svg%3E");
}

.selectButton dt .text {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

.selectButton dt::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #c0c4cc;
  transition: transform 0.2s;
}

.selectButton dt.open::after {
  transform: rotate(180deg);
}

.selectButton dd {
  margin: 0;
}

.selectButton .select {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  z-index: 100;
  max-height: 350px;
  overflow-y: auto;
}

.selectButton .select.show {
  display: block;
}

.selectButton .select ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.selectButton .select li {
  padding: 10px 16px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1.5;
}

.selectButton .select li:hover,
.selectButton .select li.hover {
  background: #f5f7fa;
  color: var(--primary);
}

.selectButton .select li.disabled {
  color: #c0c4cc;
  cursor: not-allowed;
}

/* 操作系统选择 - 横向布局 */
.os-inline-select {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.os-inline-select .selectButton dt {
  min-width: 160px;
}

.os-inline-select .select-version dt {
  min-width: 280px;
}

.os-inline-select .select-version .select {
  min-width: 280px;
  max-height: 400px;
  overflow-y: auto;
}

/* 确保下拉选项文字完整显示 */
.os-inline-select .selectButton .select li {
  white-space: normal;
  word-break: break-word;
  line-height: 1.6;
}

/* 操作系统图标 */
.os-inline-select .systemButton .select li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  white-space: nowrap;
}

.os-inline-select .systemButton .select li::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Windows 图标 */
.os-inline-select .systemButton .select li.windows::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230078d4' d='M3 5.5l7.5-1v7H3v-6zm0 13l7.5 1v-7H3v6zm8.5 1.2L21 21v-8.5h-9.5v7.2zm0-14.4V13H21V3l-9.5 1.3z'/%3E%3C/svg%3E");
}

/* Linux 图标 */
.os-inline-select .systemButton .select li.linux::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M12.5 2c-1.6 0-2.5 1.5-2.6 3.2 0 .8-.2 1.5-.7 2.2-.6.9-1.5 2-2 3.3-.2.6-.3 1.2-.2 1.8 0 0-.4.5-.8 1.1-.3.4-.7.8-1 1.1-.5.2-.8.4-.8.8-.1.2-.1.4-.1.6 0 .2 0 .4.1.6.1.5.1.9 0 1.2-.3.8-.3 1.4-.1 1.8.2.4.6.6 1.1.7 1 .3 2.3.2 3.4.7 1.1.6 2.3.8 3.2.6.6-.1 1.2-.6 1.5-1.2.7 0 1.5-.3 2.8-.4.9-.1 1.9.3 3.1.2 0 .2.1.3.1.4.5 1 1.4 1.4 2.3 1.3.9-.1 1.9-.6 2.7-1.6.8-.9 2-1.3 2.9-1.8.4-.2.8-.6.8-1 0-.5-.2-1-.9-1.7-.2-.2-.3-.7-.4-1.1-.1-.5-.2-1-.6-1.3-.4-.3-.9-.1-1.4-.1-.7.1-1 .3-1.4.3.5-1.5.3-3-.2-4.3-.6-1.6-1.8-3-2.6-3.9-1-.1-2-2.4-2-4C15 3.5 14.1 2 12.5 2z'/%3E%3C/svg%3E");
}

/* CentOS 图标 */
.os-inline-select .systemButton .select li.centos::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23932279' d='M12 2L2 7v10l10 5 10-5V7L12 2z'/%3E%3Cpath fill='%239ccd2a' d='M12 7l-3 1.5V12l3 1.5L15 12V8.5L12 7z'/%3E%3Cpath fill='%23262577' d='M12 13.5L9 12v3.5l3 1.5 3-1.5V12l-3 1.5z'/%3E%3Cpath fill='%23efe128' d='M12 7V2L6 4.5 9 8.5 12 7z'/%3E%3Cpath fill='%2308aae3' d='M9 8.5L6 4.5 2 7v5l4-2.5 3 1.5V8.5z'/%3E%3C/svg%3E");
}

/* Ubuntu 图标 */
.os-inline-select .systemButton .select li.ubuntu::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle fill='%23e95420' cx='12' cy='12' r='10'/%3E%3Ccircle fill='%23fff' cx='12' cy='5' r='2'/%3E%3Ccircle fill='%23fff' cx='6' cy='15' r='2'/%3E%3Ccircle fill='%23fff' cx='18' cy='15' r='2'/%3E%3C/svg%3E");
}

/* Debian 图标 */
.os-inline-select .systemButton .select li.debian::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23a81d33' d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm2.5 14.5c-1 .5-3 .5-4-.5-1.5-1-2-3-1.5-4.5.5-2 2-3 4-3 1 0 2 .5 2.5 1-.5.5-1 1-1.5 1-.5-.5-1-.5-1.5-.5-1.5 0-2.5 1.5-2 3 .5 1.5 2 2 3 1.5.5 0 1-.5 1.5-1 .5.5 1 1 1 1.5-.5.5-1 1-1.5 1.5z'/%3E%3C/svg%3E");
}

/* Alpine 图标 */
.os-inline-select .systemButton .select li.alpine::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230d597f' d='M5.5 16L1 11l5-5 5 5-5.5 5zm8-5L8 6l5.5-5L19 6l-5.5 5zm4 5L12 11l5.5-5 5.5 5-5.5 5z'/%3E%3C/svg%3E");
}

/* 默认系统图标 */
.os-inline-select .systemButton .select li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235a6689' d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2zm0 2v12h16V6H4zm2 2h2v2H6V8zm4 0h8v2h-8V8zm-4 4h2v2H6v-2zm4 0h8v2h-8v-2z'/%3E%3C/svg%3E");
}

/* 密码输入 */
.input-reset {
  width: 260px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #e8ecf3;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.input-reset:focus {
  border-color: var(--primary);
}

.pass-desc {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 密码设置按钮 */
.pass-type-btns {
  display: flex;
  gap: 10px;
}

.pass-type-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 36px;
  padding: 0 18px;
  background: #f5f7fa;
  border: 1px solid #e8ecf3;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.pass-type-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0f5ff;
}

.pass-type-btn.slt {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-color: var(--primary);
  color: #fff;
}

/* 时长按钮 */
.months-button-7 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.months-button-7 a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 36px;
  padding: 0 16px;
  background: #f5f7fa;
  border: 1px solid #e8ecf3;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.months-button-7 a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0f5ff;
}

.months-button-7 a.slt {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-color: var(--primary);
  color: #fff;
}

.months-button-7 a .hui-icon {
  display: none;
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ff4d4f, #ff7875);
  border-radius: 50%;
  font-size: 10px;
  color: #fff;
  line-height: 20px;
  text-align: center;
}

.months-button-7 a .hui-icon::before {
  content: '惠';
}

/* 赠送时间悬浮提示 */
.months-button-7 a[data-gift] {
  position: relative;
}

.months-button-7 a[data-gift]::after {
  content: attr(data-gift);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: linear-gradient(135deg, #ff4d4f, #ff7875);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(255,77,79,0.3);
}

.months-button-7 a[data-gift]::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #ff7875;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  margin-bottom: -4px;
}

.months-button-7 a[data-gift]:hover::after,
.months-button-7 a[data-gift]:hover::before {
  opacity: 1;
  visibility: visible;
}

/* 购买数量 */
.number-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.number-input-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.number-input {
  width: 60px;
  height: 36px;
  padding: 0 28px 0 12px;
  border: 1px solid #e8ecf3;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  outline: none;
}

.number-input:focus {
  border-color: var(--primary);
}

.number-unit {
  position: absolute;
  right: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

/* 配置价格卡片 */
.price-summary-card {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #f0f5ff 0%, #fff 100%);
}

.price-summary-card .config-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-bottom: none;
}

.price-summary-card .config-card-header .iconify {
  color: #fff;
}

.price-summary-card .config-card-title {
  color: #fff;
}

.price-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.price-summary-configs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 300px;
}

.config-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.config-tag span {
  color: var(--primary);
  font-weight: 600;
}

.price-summary-amount {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

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

.price-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

.price-value .querying {
  font-size: 14px;
  font-weight: 400;
  color: #999;
}

.price-value .error {
  font-size: 14px;
  font-weight: 400;
  color: #ff4d4f;
}

.price-origin-wrapper {
  margin-left: 0;
}

.price-origin {
  font-size: 13px;
  color: #52c41a;
}

.price-origin s {
  color: #999;
}

.gift-outer {
  display: none;
  position: relative;
  padding-left: 22px;
  font-size: 12px;
  color: #ff6600;
  margin-top: 4px;
}

.gift-outer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  background: url(/images/buy_gift.png) no-repeat center;
  background-size: contain;
}

.price-summary-action {
  flex-shrink: 0;
}

/* 底部固定价格栏 */
.price-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 1000;
  border-top: 1px solid #eee;
  display: none;
}

.price-bar .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
}

.price-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.price-config {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.price-config span {
  color: var(--primary);
  font-weight: 500;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-bar .price-value {
  font-size: 26px;
}

.server-buy-btn {
  display: inline-block;
  min-width: 140px;
  height: 44px;
  padding: 0 35px;
  background: linear-gradient(135deg, #ff8400 0%, #ff6600 100%);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
}

.server-buy-btn:hover {
  background: linear-gradient(135deg, #ff6600 0%, #e56100 100%);
}

.server-buy-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 添加磁盘 */
.add-disk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f0f5ff;
  border: 1px dashed var(--primary);
  border-radius: 6px;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.add-disk:hover {
  background: var(--primary);
  border-style: solid;
  color: #fff;
}

.show-disk-amount {
  margin-left: 15px;
  font-size: 13px;
  color: var(--text-muted);
}

.delete-disk-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #fff1f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  margin-left: 10px;
}

.delete-disk-row::before {
  content: '×';
  font-size: 18px;
  color: #ff4d4f;
  line-height: 1;
}

.delete-disk-row:hover {
  background: #ff4d4f;
}

.delete-disk-row:hover::before {
  color: #fff;
}

/* 防御内容 */
.defense-content {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* 隐藏类 */
.hide {
  display: none !important;
}

/* 购买页面响应式 */
@media (max-width: 992px) {
  .price-bar .container {
    flex-direction: column;
    padding: 15px 20px;
    gap: 12px;
  }
  
  .price-info {
    width: 100%;
    align-items: center;
  }
  
  .price-config {
    justify-content: center;
  }
  
  .price-amount {
    justify-content: center;
  }
  
  .server-buy-btn {
    width: 100%;
  }
  
  .server-buy-layout {
    padding-bottom: 180px;
  }
}

@media (max-width: 768px) {
  .server-hero-compact {
    padding: 80px 0 40px;
  }
  
  .server-hero-compact .server-hero-title {
    font-size: 28px;
  }
  
  .server-hero-compact .server-hero-subtitle {
    font-size: 14px;
  }
  
  .promo-text {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
  
  .server-buy-layout {
    padding: 20px 15px 200px;
  }
  
  .config-card-body {
    padding: 20px 16px;
  }
  
  .config-row {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .config-label {
    width: auto;
    text-align: left;
    padding-right: 0;
    line-height: 1.5;
  }
  
  .config-content {
    width: 100%;
  }
  
  .line-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .line-buttons .line-type-btn {
    width: 100%;
    min-width: auto;
  }
  
  .slider {
    width: 100%;
    max-width: 280px;
  }
  
  .slider-item-box,
  .slider-range-current {
    width: 264px;
  }
  
  .selectButton {
    width: 100%;
    min-width: auto;
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .system-choose,
  .select-version {
    margin-right: 0;
  }
  
  .input-reset {
    width: 100%;
    max-width: 280px;
  }
  
  .config-tip {
    margin-left: 0;
    margin-top: 10px;
  }
  
  .btn-group {
    width: 100%;
  }
  
  .btn-group a {
    flex: 1;
    min-width: 60px;
  }
}

@media (max-width: 480px) {
  .line-buttons .line-type-btn {
    padding: 8px 12px;
    font-size: 13px;
    min-width: auto;
  }
}

/* ========================================
   新增样式 - 2026年1月3日
======================================== */

/* 系统盘样式 */
.system-disk-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.system-disk-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f0f5ff 0%, #e6f0ff 100%);
  border: 1px solid var(--primary);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.system-disk-free {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #52c41a, #73d13d);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}

/* 磁盘添加行 */
.disk-add-row {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

.add-disk {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: transparent;
  border: 1px dashed var(--primary);
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.add-disk:hover {
  background: var(--primary);
  border-style: solid;
  color: #fff;
}

.show-disk-amount {
  margin-left: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* 数量控制器样式 */
.qty-spinner {
  display: flex;
  align-items: stretch;
  border: 1px solid #e8ecf3;
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  background: #f5f7fa;
  border: none;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

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

.qty-input {
  width: 50px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-left: 1px solid #e8ecf3;
  border-right: 1px solid #e8ecf3;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

.qty-unit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--text-muted);
  background: #f5f7fa;
  border-left: 1px solid #e8ecf3;
}


/* 滑块输入组 */
.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-input-group {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}

.slider-ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f5f7fa;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

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

.slider-input {
  width: 50px;
  height: 32px;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
  border-left: 1px solid #e8ecf3;
  border-right: 1px solid #e8ecf3;
}

.slider-unit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 32px;
  font-size: 12px;
  color: var(--text-muted);
  background: #f5f7fa;
  border-right: 1px solid #e8ecf3;
}

/* 订单确认卡片 */
.order-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.order-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.order-discount-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.order-card-body {
  padding: 12px 16px;
  background: #fafbfc;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #e8ecf3;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-label {
  font-size: 13px;
  color: var(--text-muted);
}

.order-item-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* 赠送时间样式 */
.order-gift-item {
  background: linear-gradient(135deg, rgba(255,106,0,0.08) 0%, rgba(255,140,60,0.08) 100%);
  margin: 8px -16px;
  padding: 10px 16px !important;
  border-radius: 0;
}

.order-gift-item .order-item-label {
  color: #ff6a00;
  font-weight: 500;
}

.order-gift-value {
  color: #ff6a00 !important;
  font-weight: 600 !important;
  position: relative;
}

.order-gift-value::before {
  content: "🎁 ";
  font-size: 14px;
}

/* 价格区域 */
.order-price-section {
  padding: 16px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.order-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.order-price-label {
  font-size: 13px;
  color: var(--text-muted);
}

.order-price-origin {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.order-discount-row {
  color: #52c41a;
}

.order-discount-row .order-price-label {
  color: #52c41a;
}

.order-price-discount {
  font-size: 13px;
  font-weight: 600;
  color: #52c41a;
}

.order-price-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.order-price-total-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.order-price-total-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.order-price-total-value .querying {
  font-size: 14px;
  font-weight: 400;
  color: #999;
}

.order-price-total-value .error {
  font-size: 14px;
  font-weight: 400;
  color: #ff4d4f;
}


.order-card-action {
  padding: 16px;
}

.order-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, #ff8400 0%, #ff6600 100%);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
}

.order-submit-btn:hover {
  background: linear-gradient(135deg, #ff6600 0%, #e56100 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,102,0,0.3);
}

/* 订单卡片新样式 */
.order-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.order-promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px 10px;
  background: linear-gradient(135deg, #FF6B6B, #EE5A24);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.order-config-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-config-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
}

.order-config-item:last-child {
  border-bottom: none;
}

.order-config-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary-50);
  border-radius: 6px;
  color: var(--primary);
  flex-shrink: 0;
}

.order-config-label {
  font-size: 13px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  width: 50px;
}

.order-config-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-left: auto;
}

.order-discount-info {
  margin-top: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
  border-radius: 8px;
  font-size: 13px;
  color: #E65100;
}

.order-card-footer {
  padding: 20px;
  background: #fff;
  border-top: 1px solid var(--border-light);
}

.order-price-area {
  margin-bottom: 16px;
}

.order-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-price-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.order-price-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.order-price-value .querying {
  font-size: 14px;
  font-weight: 400;
  color: #999;
}

.order-price-value .error {
  font-size: 14px;
  font-weight: 400;
  color: #ff4d4f;
}

.order-original-price {
  font-size: 13px;
  color: #999;
  text-align: right;
  margin-top: 4px;
}

.order-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.order-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.order-buy-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.order-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.order-price-tips {
  padding: 0 16px 12px;
  font-size: 12px;
  color: #ff6600;
  text-align: center;
}

/* 底部固定栏 */
.fixed-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  z-index: 1000;
  display: none;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.fixed-bar.show {
  display: block;
  transform: translateY(0);
}

.fixed-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  gap: 20px;
}

.fixed-bar-config {
  flex: 1;
  font-size: 13px;
  color: var(--text-muted);
}

.fixed-bar-config span {
  color: var(--primary);
  font-weight: 500;
}

.fixed-bar-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.fixed-bar-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.fixed-bar-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.fixed-bar-btn {
  min-width: 120px;
  height: 40px;
  padding: 0 24px;
  background: linear-gradient(135deg, #ff8400 0%, #ff6600 100%);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.fixed-bar-btn:hover {
  background: linear-gradient(135deg, #ff6600 0%, #e56100 100%);
}

/* 响应式 - 左右布局 */
@media (max-width: 992px) {
  .buy-main-wrapper {
    flex-direction: column;
  }
  
  .buy-sidebar {
    width: 100%;
    position: static;
  }
}

/* 响应式 - 订单确认 */
@media (max-width: 768px) {
  .sidebar-promo {
    margin-bottom: 12px;
  }
  
  .fixed-bar-inner {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }
  
  .fixed-bar-config {
    text-align: center;
    font-size: 12px;
  }
  
  .fixed-bar-btn {
    width: 100%;
  }
  
  .os-select-wrapper {
    flex-direction: column;
  }
  
  .os-type-box .selectButton,
  .os-version-box .selectButton {
    width: 100%;
    min-width: auto;
  }
  
  .slider-row {
    flex-wrap: wrap;
  }
  
  .slider {
    width: 100% !important;
    max-width: 100%;
  }
  
  .slider-input-group {
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .order-total-price {
    font-size: 28px;
  }
  
  .system-disk-content {
    flex-wrap: wrap;
  }
  
  .order-card-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* 移动端操作系统选择 */
@media (max-width: 768px) {
  .os-inline-select {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .os-inline-select .selectButton {
    width: 100%;
  }
  
  .os-inline-select .selectButton dt {
    min-width: 100%;
    width: 100%;
  }
  
  .os-inline-select .select-version dt {
    min-width: 100%;
    width: 100%;
  }
  
  .os-inline-select .selectButton .select {
    min-width: 100%;
    width: 100%;
    left: 0;
    right: 0;
  }
  
  .os-inline-select .select-version .select {
    min-width: 100%;
    width: 100%;
  }
  
  /* 滑块响应式 */
  .slider-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .slider {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .slider-item-box,
  .slider-range-current {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .slider-input-group {
    width: 100%;
    justify-content: flex-start;
  }
  
  /* 购买时间响应式 */
  .months-button {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .months-button a {
    min-width: calc(33.33% - 6px);
    flex: 0 0 auto;
  }
  
  /* 数量控制响应式 */
  .qty-spinner {
    width: 100%;
    max-width: 160px;
  }
  
  .qty-input {
    flex: 1;
  }
  
  /* 配置按钮组响应式 */
  .btn-group {
    flex-wrap: wrap;
  }
  
  .btn-group a {
    min-width: calc(25% - 6px);
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ========================================
   Region Buttons 地域选择按钮
======================================== */
.region-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.region-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 16px 20px;
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.region-btn:hover {
  border-color: var(--primary);
  background: var(--primary-50);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.region-btn.slt {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.region-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-light);
}

.region-btn.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-light);
}

.region-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.region-btn.slt .region-name {
  color: var(--primary);
}

.region-area {
  font-size: 12px;
  color: var(--text-tertiary);
}

.region-btn.slt .region-area {
  color: var(--primary-dark);
}

/* Duration Buttons 购买时长按钮 */
.duration-buttons-wrapper {
  position: relative;
}

.duration-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.duration-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
}

.duration-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

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

.duration-btn.has-discount::after {
  content: '惠';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #FF6B6B, #EE5A24);
  color: #fff;
  font-size: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.month-tip {
  position: absolute;
  top: -45px;
  left: 0;
  padding: 8px 14px;
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
  border: 1px solid #FFB74D;
  color: #E65100;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
  font-size: 13px;
  font-weight: 500;
  display: none;
  z-index: 10;
  white-space: nowrap;
}

.month-tip::after {
  content: '';
  position: absolute;
  left: 50%;
  margin-left: -6px;
  bottom: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #FFB74D transparent transparent transparent;
}

/* Login Type Select 登录方式选择 */
.login-type-select {
  display: flex;
  gap: 16px;
}

.login-type-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.login-type-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

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

.config-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.password-fields {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-light);
}

/* Disk Display 磁盘显示 */
.disk-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.disk-size {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.disk-type {
  padding: 2px 8px;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
}

.disk-free {
  padding: 2px 8px;
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  color: #2E7D32;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
}

/* Add Disk Area 添加磁盘区域 */
.add-disk-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.add-disk-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.disk-remain {
  font-size: 13px;
  color: var(--text-tertiary);
}

.disk-remain strong {
  color: var(--primary);
  font-weight: 600;
}

.delete-disk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.delete-disk-btn:hover {
  background: #FFEBEE;
  color: #E53935;
}

/* Config Tip Inline 内联提示 */
.config-tip-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-light);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.config-tip-inline strong {
  color: var(--primary);
  font-weight: 600;
}

/* Added Disk Row */
.added-disk {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

/* Mobile Responsive 移动端响应式 */
@media (max-width: 767px) {
  .region-buttons {
    gap: 8px;
  }
  
  .region-btn {
    min-width: calc(50% - 4px);
    padding: 12px 16px;
  }
  
  .duration-buttons {
    gap: 8px;
  }
  
  .duration-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .login-type-select {
    flex-direction: column;
    gap: 12px;
  }
  
  .add-disk-area {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

