/* 全局重置与基础配置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
  background-attachment: fixed;
  color: #2d3748;
  line-height: 1.6;
}

/* 磨砂玻璃基础类 */
.frosted-glass {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* 导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar h1 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #3182ce, #4299e1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.5px;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 5%;
}

/* 提示消息 */
.message.success {
  padding: 1rem 1.5rem;
  background: rgba(72, 187, 120, 0.2);
  border: 1px solid rgba(72, 187, 120, 0.3);
  border-radius: 10px;
  color: #22543d;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

/* 标签栏 */
.tab-bar {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.tab {
  padding: 0.8rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #4a5568;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid transparent;
}

.tab.active {
  background: #4299e1;
  color: white;
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #3182ce;
}

/* 域名卡片列表 */
.domain-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* 域名卡片 */
.domain-card {
  padding: 1.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.domain-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.domain-card.sold-domain {
  opacity: 0.8;
  background: rgba(247, 243, 243, 0.2);
}

.domain-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d3748;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sold-badge {
  padding: 0.3rem 0.6rem;
  background: rgba(229, 62, 62, 0.2);
  color: #c53030;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
}

.domain-desc {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

.domain-price {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.fixed-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #38b2ac;
}

.bid-tag, .fixed-tag {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.fixed-tag {
  background: rgba(56, 178, 172, 0.2);
  color: #285e61;
}

.bid-tag {
  background: rgba(159, 122, 234, 0.2);
  color: #44337a;
}

.domain-sold {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.sold-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #718096;
}

.sold-text {
  font-weight: 500;
  color: #c53030;
}

/* 按钮样式 */
.btn {
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: 0.95rem;
}

.btn-primary {
  background: #4299e1;
  color: white;
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}

.btn-primary:hover {
  background: #3182ce;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(66, 153, 225, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.3);
  color: #4a5568;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #2d3748;
  transform: translateY(-2px);
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.modal-header {
  padding: 1rem 1.5rem;
  background: #4299e1;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.modal-close {
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.modal-close:hover {
  transform: scale(1.1);
}

/* 表单样式 */
form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2d3748;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* 页脚 */
.footer {
  text-align: center;
  padding: 1.5rem;
  color: #718096;
  font-size: 0.9rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式适配 */
@media (max-width: 768px) {
  .navbar h1 {
    font-size: 1.6rem;
  }
  
  .domain-cards {
    grid-template-columns: 1fr;
  }
  
  .tab {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .domain-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 3%;
  }
  
  .domain-card {
    padding: 1.2rem;
  }
  
  .modal-content {
    width: 95%;
  }
}