/* 域名注册模块样式 - 完全重写匹配图片 */
.domain-register {
    padding: 0 0 80px 0;
    margin-top: 40px;
    position: relative;
    z-index: 1;
    background: transparent;
}

/* 域名模块背景 - 仿照业务迁移 */
.domain-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-color: #fff;
    /* 不规则弥散光晕 - 颜色变浅 */
    background-image: 
        radial-gradient(ellipse 35% 40% at 40% 45%, #d8cbfd 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(ellipse 40% 35% at 60% 55%, #b0d0ff 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
    filter: blur(40px);
    opacity: 0.8;
}

.domain-title {
    text-align: left; /* 左对齐 */
    max-width: 900px; /* 限制宽度 */
    margin: 0 auto 24px auto; /* 居中显示，保持底部间距 */
    padding-left: 0; /* 移除额外padding，与搜索框对齐 */
}

.domain-title h2 {
    font-size: 32px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.domain-search {
    margin-bottom: 40px; /* 恢复底部间距 */
    padding: 0 5px;
}

/* 搜索区域布局 */
.domain-search-wrapper {
    max-width: 900px; /* 限制宽度 */
    margin: 0 auto; /* 居中显示 */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 内容左对齐 */
    gap: 16px; /* 间距加大 */
    position: relative;
    z-index: 2;
}

/* 输入框模块 - 优化毛玻璃效果 */
.search-input-box {
    flex: 0 1 800px;
    position: relative;
    height: 72px;
    background-color: rgba(255, 255, 255, 0.65); /* 提高不透明度，减少“太毛玻璃”的感觉 */
    backdrop-filter: blur(25px); /* 增加模糊度，使背景更平滑 */
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.9); /* 边框更清晰 */
    border-radius: 50px; 
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); /* 稍微增强阴影 */
}

.search-input-box:hover,
.search-input-box:focus-within {
    background-color: rgba(255, 255, 255, 0.85); /* 悬停/聚焦时更白 */
    border-color: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.search-input-box input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 32px; /* padding增加 */
    font-size: 18px; /* 字体加大 */
    color: #333;
    outline: none;
    border-radius: 50px;
}

.search-input-box input::placeholder {
    color: #666;
    opacity: 0.7;
}

/* 搜索按钮模块 */
.search-btn-box {
    width: 72px; /* 尺寸加大 */
    height: 72px; /* 尺寸加大 */
    flex-shrink: 0;
}

.search-btn {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.65); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.9); 
    color: #8b8cbe;
    border-radius: 50px; 
    font-size: 24px; /* 图标加大 */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.search-btn:hover {
    background-color: rgba(255, 255, 255, 0.85);
    color: #7a7ba8;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: #fff;
}

.search-btn:active {
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .domain-register {
        padding: 40px 0;
        margin-top: 20px;
    }

    .domain-title {
        text-align: center;
        padding: 0 20px;
        margin-bottom: 20px;
    }
    
    .domain-title h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .domain-search-wrapper {
        flex-direction: row; /* 保持并在行内 */
        padding: 0 15px;
        gap: 10px; /* 减小间距 */
    }

    .search-input-box {
        height: 50px;
        flex: 1; /* 自动填充剩余空间 */
    }
    
    .search-input-box input {
        font-size: 14px;
        padding: 0 15px;
    }

    .search-btn-box {
        width: 50px;
        height: 50px;
    }

    .search-btn {
        font-size: 18px;
    }
}

.domain-price {
    display: none; /* 隐藏价格列表 */
}

.price-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.price-item {
    background: white;
    border-radius: 8px;
    padding: 20px 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-width: 120px;
}

.price-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.price-item .suffix {
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1;
}

.price-item .price {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

/* 域名后缀颜色 - 完全匹配图片 */
.tld-com { color: #00bcd4; }  /* 青色 */
.tld-info { color: #f44336; } /* 红色 */
.tld-org { color: #4caf50; }  /* 绿色 */
.tld-biz { color: #9c27b0; }  /* 紫色 */
.tld-xyz { color: #ff9800; }  /* 橙色 */

/* 响应式设计 */
@media (max-width: 768px) {
    .domain-register {
        padding: 0 0 60px 0;
    }
    
    .domain-title h2 {
        font-size: 24px;
        padding: 0 15px;
    }
    
    .domain-search {
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    /* Removed old search-box styles */
    
    .domain-price {
        margin-top: 20px;
        padding: 0 15px;
    }
    
    .price-list {
        flex-wrap: wrap;
        gap: 10px;
        max-width: 100%;
        justify-content: center;
    }
    
    .price-item {
        min-width: calc(50% - 5px);
        width: calc(50% - 5px);
        padding: 16px 20px;
        display: block;
        text-align: center;
    }
    
    .price-item .suffix {
        font-size: 20px;
        margin-bottom: 8px;
        display: block;
    }
    
    .price-item .price {
        font-size: 12px;
        font-weight: 400;
    }
    
    /* 移动端隐藏.shop域名 */
    .price-item:last-child {
        display: none;
    }
}

@media (max-width: 480px) {
    .domain-title h2 {
        font-size: 20px;
    }
    
    .search-box {
        height: 48px;
    }
    
    .search-box input {
        padding: 0 12px;
        font-size: 14px;
        height: 48px;
    }
    

    
    .search-btn {
        font-size: 13px;
        padding: 0 12px;
        min-width: 80px;
        height: 48px;
    }
    
    .price-item {
        padding: 14px 16px;
        min-width: calc(50% - 5px);
        width: calc(50% - 5px);
    }
    
    .price-item .suffix {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .price-item .price {
        font-size: 11px;
    }
    
    /* 移动端隐藏.shop域名 */
    .price-item:last-child {
        display: none;
    }
}

/* 隐藏不需要的元素 */
.animation-wrapper,
.price-title,
.domain-features,
.feature-item,
.icon-free,
.icon-beian,
.icon-security,
.icon-service {
    display: none !important;
}

/* 添加消息提示样式 */
.success-message,
.error-message,
.info-message {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 350px;
  padding: 10px 20px;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  animation: fadeInRight 0.3s ease-out;
}

.success-message {
  background-color: #52c41a;
}

.error-message {
  background-color: #ff4d4f;
}

.info-message {
  background-color: #1890ff;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
    }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 移动端适配优化 */
@media (max-width: 480px) {
    .price-item {
        width: calc(50% - 4px);
        padding: 12px 8px;
    }
    
    .price-item .suffix {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .price-item .price {
        font-size: 12px;
    }
    
    .price-item .unit {
        font-size: 12px;
        display: block;
    }
    
    .feature-item {
        width: 100%;
    }
    
    .search-box input {
        height: 45px;
        font-size: 14px;
    }
    
    .search-btn {
        font-size: 15px;
    }
    
    .domain-price {
        margin-bottom: 30px;
    }
    
    .price-title h3 {
        font-size: 20px;
    }
    
    .price-title p {
        font-size: 12px;
    }
    
    .price-list {
        gap: 8px;
    }
    
    .domain-register {
        padding: 0px 0 30px 0;
    }
    
    .domain-title {
        margin-bottom: 20px;
    }
    
    .icon-free, .icon-beian, .icon-security, .icon-service {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 14px;
  }
}