body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}
a {
    text-decoration: none;
    color: inherit; /* 保持链接与文本的颜色一致 */
}

a:hover {
    color: #ff6a6a; /* 悬停时改变文字颜色 */
    text-decoration: none;
}

.logo a {
      background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
.title_shop a {
      background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
            -webkit-background-clip: text;
            background-clip: text;
           color: transparent;
        }
mi-shop a {
 color: #3bbf66;
    }


header {
    background-color: #ffffff;
    color: #333333;
    padding: 16px 30px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 0 4px 4px #ccc;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.r_title{
    display: flex;
    align-items: right;
    font-weight: bold;
    font-size: 18px;
 letter-spacing: 2.5px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 10px;
    vertical-align: middle;
    animation: heartbeat 1s infinite;
}

.logo span {
    letter-spacing: 2px;
    font-size: 35px;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .logo span {
        font-size: 29px;
    }

    .r_title {
        display: none;
    }
}

@keyframes heartbeat {
    0%, 100% {
      transform: scale(1);
    }
    25% {
      transform: scale(1.1);
    }
    50% {
      transform: scale(0.9);
    }
    75% {
      transform: scale(1.1);
    }
  }

main {
    padding: 20px;
}



.domain-section {
    margin-bottom: 30px;
}

.domain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* 设置元素之间的间距 */
    justify-content: flex-start; /* 确保元素从左到右对齐 */
}

.domain-item {
    background-color: white;
    padding: 20px 23px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    flex-shrink: 0; /* 不允许缩小 */
    cursor: pointer;
}

.domain-item-delete {
    opacity: 0.8;
    text-decoration: line-through;
    background: #d5dce2;
    color: #666;
}

.nomal-section .domain-item{
     position: relative;
     -webkit-transition: all .2s linear;
    transition: all .2s linear;
}
.nomal-section .domain-item:after{
    position: absolute;
    content: "";
    height: 2px;
    width: 0;
    left: 0;
    bottom: 0;
    background: -webkit-linear-gradient(45deg, #FF5D4A, #f99157, #fac863, #4FC277, #5fb3b3) !important;
    background: linear-gradient(45deg, #FF5D4A, #f99157, #fac863, #4FC277, #5fb3b3) !important;
    box-sizing: inherit;
    transition: width 0.5s;
    -moz-transition: width 0.5s !important;
    -webkit-transition: width 0.5s !important;
    -o-transition: width 0.5s !important;
}

.nomal-section .domain-item:hover::after {
    width: 100%;
}


@keyframes clippath {
  0%,
  100% {
      clip-path: inset(0 0 96% 0);
      filter: hue-rotate(0deg);
  }
  25% {
      clip-path: inset(0 96% 0 0);
  }
  50% {
      clip-path: inset(96% 0 0 0);
      filter: hue-rotate(360deg);
  }
  75% {
      clip-path: inset(0 0 0 96%);
  }
}


.domain-item:hover {
    z-index: 2;
    -webkit-box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
    -webkit-transform: translate3d(0, -2px, 0);
    transform: translate3d(0, -2px, 0);
}

/*如果不要动态边框，把这里删除了*/
.recommended{
    position: relative;
    &:hover {
        filter: contrast(1.1);
    }
    
    &:active {
        filter: contrast(0.9);
    }
    &::before,
    &::after{
        content: "";
        border: 2px solid;
        border-image: linear-gradient(45deg, gold, deeppink) 1;
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        animation: clippath 20s infinite ;
    }
    &::before{
        animation: clippath 20s infinite -10s linear;
    }
}
/*如果不要动态边框，把这里删除了*/


.domain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    margin-bottom: 15px;
}

.domain-name {
    font-weight: bold;
    font-size: 20px;
}

.domain-price {
    color: #ff5722;
    font-weight: bold;
}

.domain-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.domain-desc {
    font-size: 14px;
    color: #757575;
}

.domain-link{
    display: flex;
    align-items: center;
}

.domain-link img {
    height: 20px;
    width: 20px;
    cursor: pointer;
}

.domain-link-name{
    font-size: 18px;
    color: #388e3c;
    font-weight: bold;
}

/* 大屏幕（桌面显示器）：每行显示5个域名 */
@media (min-width: 1200px) {
    .domain-item {
        flex: 0 0 calc(20% - 10px); /* 每行显示5个，不会加宽 */
    }
}

/* 中等屏幕（平板电脑）：每行显示3个域名 */
@media (min-width: 768px) and (max-width: 1199px) {
    .domain-item {
        flex: 0 0 calc(33.33% - 10px); /* 每行显示3个，不会加宽 */
    }
}

/* 小屏幕（手机）：每行显示1个域名 */
@media (max-width: 767px) {
    .domain-item {
        flex: 0 0 calc(100% - 10px); /* 每行显示1个，不会加宽 */
    }
}
footer {
    background-color: #fff;
    color: #333;
    padding: 40px 20px;
    text-align: center; /* 居中对齐 */
}
.frend-link{
     margin-bottom: 10px;
}
.frend-link a {
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    margin: 0 10px;
    display: inline-block;
    background-color: #fff;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    -webkit-transition: all .2s linear;
    transition: all .2s linear;
    
}
.frend-link a:after{
    position: absolute;
    content: "";
    height: 2px;
    width: 0;
    left: 0;
    bottom: 0;
    background: -webkit-linear-gradient(45deg, #FF5D4A, #f99157, #fac863, #4FC277, #5fb3b3) !important;
    background: linear-gradient(45deg, #FF5D4A, #f99157, #fac863, #4FC277, #5fb3b3) !important;
    box-sizing: inherit;
    transition: width 0.5s;
    -moz-transition: width 0.5s !important;
    -webkit-transition: width 0.5s !important;
    -o-transition: width 0.5s !important;
}

.frend-link:hover::after {
    width: 100%;
}


.frend-link a:hover {
    text-decoration: none;
    background-color: rgba(82, 145, 252, 0.5);
    color: #ffffff;
}

.footer-info {
    font-size: 16px;
}


.contact-shop-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.contact span {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
}

.contact img {
    margin-right: 8px;
    height: 20px;
}

.mi-shop a {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin-left: 15px;
}

.mi-shop a:hover {
    color: #ff5722;
}

/* Medium screens (Tablets) */
@media (max-width: 768px) {
    .contact-shop-wrapper {
        justify-content: center; /* Center content on medium screens */
    }

    .contact, .mi-shop {
        flex-basis: 100%; /* Full width for each section */
        text-align: center;
        margin-bottom: 10px; /* Spacing between contact and shop sections */
    }

    .mi-shop a {
        display: block; /* Stack links vertically */
        margin-left: 0;
        margin-bottom: 10px;
    }
}

/* Small screens (Phones) */
@media (max-width: 480px) {
    .contact span {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 0;
        margin-bottom: 10px;

    }

    .mi-shop a {
        margin-bottom: 8px;
    }
}

