/* ========================================
   机柜租用页面样式
   ======================================== */

/* Hero Section */
.cabinet-hero {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #1e40af 0%, #7c3aed 50%, #4f46e5 100%);
  overflow: hidden;
}

.cabinet-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cabinet-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.cabinet-hero-content {
  flex: 1;
  max-width: 600px;
}

.cabinet-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.cabinet-hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.cabinet-hero-title span {
  font-size: 28px;
  font-weight: 400;
  opacity: 0.9;
}

.cabinet-hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 32px;
}

.cabinet-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.cabinet-hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.cabinet-hero-feature svg {
  width: 18px;
  height: 18px;
}

.cabinet-hero-illustration {
  flex-shrink: 0;
  width: 380px;
  height: 280px;
}

.cabinet-hero-illustration svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Main Content */
.cabinet-main {
  padding: 60px 0;
  background: #f8fafc;
  min-height: 400px;
}

/* Class Tabs */
.class-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.class-tab {
  display: flex;
  flex-direction: column;
  padding: 16px 28px;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  color: #475569;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.class-tab:hover {
  color: #4f46e5;
  border-color: #4f46e5;
  transform: translateY(-2px);
}

.class-tab.active {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  border-color: transparent;
}

.class-tab-name {
  font-size: 16px;
  font-weight: 600;
}

.class-tab-desc {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 4px;
}

/* Product List */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.product-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.product-name {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.product-tag {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #fff;
  font-size: 12px;
}

.product-card-body {
  padding: 24px;
}

.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.spec-value {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.product-desc {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-label {
  font-size: 13px;
  color: #94a3b8;
}

.price-value {
  font-size: 28px;
  font-weight: 700;
  color: #f97316;
}

.price-unit {
  font-size: 14px;
  color: #94a3b8;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
  color: #fff;
}

/* No Data */
.no-data {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: #94a3b8;
}

.no-data svg {
  margin-bottom: 16px;
}

.no-data p {
  font-size: 16px;
  margin: 0;
}

/* Features Section */
.cabinet-features {
  padding: 80px 0;
  background: #fff;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 32px 24px;
  background: #f8fafc;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  transform: translateY(-4px);
}

.feature-card:hover .feature-icon,
.feature-card:hover .feature-title,
.feature-card:hover .feature-desc {
  color: #fff;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-radius: 16px;
  color: #fff;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: rgba(255, 255, 255, 0.2);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.feature-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  transition: all 0.3s ease;
}

/* Buy Section */
.buy-section {
  padding: 40px 0 80px;
  background: #f8fafc;
  min-height: 100vh;
}

.buy-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #4f46e5;
}

.buy-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.buy-content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.buy-main {
  flex: 1;
}

.buy-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.buy-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.buy-card-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.buy-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.product-class {
  padding: 4px 12px;
  background: #e0e7ff;
  color: #4f46e5;
  border-radius: 50px;
  font-size: 13px;
}

.buy-card-body {
  padding: 24px;
}

.product-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.info-value {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.product-description {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.8;
}

/* Duration Options */
.duration-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.duration-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 32px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.duration-option input {
  position: absolute;
  opacity: 0;
}

.duration-option:hover {
  border-color: #4f46e5;
}

.duration-option.active {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-color: transparent;
}

.duration-option.active .duration-name,
.duration-option.active .duration-price {
  color: #fff;
}

.duration-name {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.duration-price {
  font-size: 20px;
  font-weight: 700;
  color: #f97316;
  transition: color 0.3s ease;
}

.duration-discount {
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 4px 10px;
  background: #f97316;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50px;
}

/* Form */
.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: #4f46e5;
}

/* Sidebar */
.buy-sidebar {
  width: 360px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

.order-summary {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.summary-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.summary-label {
  font-size: 14px;
  color: #64748b;
}

.summary-value {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
}

.summary-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 20px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.total-label {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.total-value {
  font-size: 28px;
  font-weight: 700;
  color: #f97316;
}

.user-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 20px;
}

.balance-label {
  font-size: 14px;
  color: #64748b;
}

.balance-value {
  font-size: 16px;
  font-weight: 600;
  color: #10b981;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-tip {
  text-align: center;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
}

.login-tip p {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 16px;
}

.btn-login {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-login:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .cabinet-hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .cabinet-hero-content {
    max-width: 100%;
  }
  
  .cabinet-hero-features {
    justify-content: center;
  }
  
  .cabinet-hero-illustration {
    display: none;
  }
  
  .cabinet-hero-title {
    font-size: 36px;
  }
  
  .buy-content {
    flex-direction: column;
  }
  
  .buy-sidebar {
    width: 100%;
    position: static;
  }
  
  .product-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cabinet-hero {
    padding: 60px 0;
  }
  
  .cabinet-hero-title {
    font-size: 28px;
  }
  
  .cabinet-hero-title span {
    font-size: 20px;
  }
  
  .cabinet-hero-feature {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .product-list {
    grid-template-columns: 1fr;
  }
  
  .class-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    margin-bottom: 24px;
  }
  
  .class-tab {
    flex-shrink: 0;
    padding: 12px 20px;
  }
  
  .duration-options {
    flex-direction: column;
  }
  
  .duration-option {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding: 16px 20px;
  }
  
  .duration-name {
    margin-bottom: 0;
  }
}


