body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

header {
    background-color: #fff;
    color: #333;
    padding: 10px 20px;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.logo span {
    font-size: 20px;
    font-weight: bold;
    line-height: 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: #fff;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
    flex-shrink: 0;
    transition: transform 0.2s linear, box-shadow 0.2s linear;
}

.nomal-section .domain-item {
    position: relative;
}

.nomal-section .domain-item::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(45deg, #FF5D4A, #f99157, #fac863, #4FC277, #5fb3b3);
    box-sizing: inherit;
    transition: width 0.5s;
}

.nomal-section .domain-item:hover::after {
    width: 100%;
}

.domain-item:hover {
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translate3d(0, -2px, 0);
}

/* 推荐动态边框 */
.recommended {
    position: relative;
}

.recommended:hover {
    filter: contrast(1.1);
}

.recommended:active {
    filter: contrast(0.9);
}

.recommended::before,
.recommended::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid;
    border-image: linear-gradient(45deg, gold, deeppink) 1;
    animation: clippath 20s linear infinite;
}

.recommended::before {
    animation-delay: -10s;
}

@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-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    margin-bottom: 10px;
}

.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 img {
    height: 20px;
    width: 20px;
    cursor: pointer;
}

/* 响应式布局 */

@media (min-width: 1200px) {
    .domain-item {
        flex: 0 0 calc(20% - 8px);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .domain-item {
        flex: 0 0 calc(33.33% - 8px);
    }
}

@media (min-width: 641px) and (max-width: 767px) {
    .domain-item {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 640px) {
    .domain-item {
        flex: 0 0 100%;
    }
}

footer {
    background-color: #fff;
    color: #333;
    padding: 10px 20px;
    text-align: center;
}

.frend-link {
    margin-bottom: 20px;
    font-size: 14px;
}

.frend-link h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.frend-link a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    margin: 6px 8px;
    background-color: #fff;
    color: #333;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
    transition: color 0.3s;
    z-index: 0;
    border: 2px solid transparent;
}

.frend-link a::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(45deg, #FF5D4A, #f99157, #fac863, #4FC277, #5fb3b3, #FF5D4A);
    background-size: 300% 300%;
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    animation: gradientAnimation 3s ease infinite;
    z-index: -1;
}

.frend-link a:hover::before {
    opacity: 1;
}

.frend-link a:hover {
    color: #000;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 768px) {
    .frend-link a {
        display: inline-block;
        width: calc(49% - 16px);
        box-sizing: border-box;
        text-align: center;
    }
}

@media (max-width: 300px) {
    .frend-link a {
        width: 100%;
    }
}

.footer-info {
    font-size: 1rem;
}

.contact-shop-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
    flex-wrap: wrap;
}

.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;
}

@media (max-width: 768px) {
    .contact-shop-wrapper {
        padding: 10px 0;
    }

    .mi-shop,
    .contact {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        padding: 0;
        margin: 10px 0 0 0;
    }

    .mi-shop a,
    .contact span {
        box-sizing: border-box;
        padding: 5px 0;
        font-size: 14px;
        text-align: center;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 0 0 33.3333%;
    }

    .contact img {
        height: 12px;
        margin-right: 1px;
        vertical-align: middle;
    }
}

@media (max-width: 300px) {
    .mi-shop a,
    .contact span {
        flex: 0 0 100%;
    }
}