/* 域名注册模块样式 - 完全重写匹配图片 */
.domain-register {
    padding: 0 0 80px 0;
    background: #FFFFFF;
}

.domain-title {
    text-align: center;
    margin-bottom: 40px;
}

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

.domain-search {
    margin-bottom: 40px;
    padding: 0 5px;
}

.search-box {
    max-width: 900px;
    margin: 0 auto 0 auto;
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: visible;
    height: 60px;
    position: relative;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 24px;
    font-size: 16px;
    color: #333;
    background: transparent;
    border-radius: 8px 0 0 8px;
}

.search-box input::placeholder {
    color: #999;
}

.suffix-dropdown {
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    cursor: pointer;
    background: #fff;
    min-width: 100px;
    justify-content: center;
    position: relative;
    user-select: none;
}

.suffix-dropdown .selected-suffix {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.suffix-dropdown i {
    margin-left: 8px;
    color: #666;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.suffix-dropdown.active i {
    transform: rotate(180deg);
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.dropdown-list.show {
    display: block;
}

.dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.search-btn {
    background: linear-gradient(135deg, #4f8ff7, #6ba3f8);
    color: white;
    border: none;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    border-radius: 0 8px 8px 0;
}

.search-btn:focus {
    outline: 2px solid #4f8ff7;
    outline-offset: 2px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #3b7ce6, #4f8ff7);
    transform: translateY(-1px);
}

.domain-price {
    margin-top: 30px;
}

.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;
    }
    
    .search-box {
        max-width: 100%;
        flex-direction: row;
        height: 50px;
        overflow: visible;
        border-radius: 8px;
    }
    
    .search-box input {
        height: 50px;
        border-radius: 8px 0 0 8px;
        font-size: 16px;
        padding: 0 16px;
    }
    
    .suffix-dropdown {
        border-left: 1px solid #e8e8e8;
        border-right: 1px solid #e8e8e8;
        border-top: none;
        border-bottom: none;
        height: 50px;
        border-radius: 0;
        min-width: 80px;
        padding: 0 12px;
    }
    
    .search-btn {
        height: 50px;
        border-radius: 0 8px 8px 0;
        font-size: 14px;
        min-width: 90px;
        padding: 0 16px;
    }
    
    .search-btn:focus {
        outline-offset: 1px;
    }
    
    .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;
    }
    
    .suffix-dropdown {
        padding: 0 8px;
        min-width: 70px;
        height: 48px;
    }
    
    .suffix-dropdown .selected-suffix {
        font-size: 13px;
    }
    
    .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;
  }
}