/* --- 基础与背景设置 --- */
/* --- 基础与背景设置 --- */
body {
    font-family: 'Noto Sans SC', sans-serif;
    margin: 0;
    padding: 40px 20px;
    color: #fff;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: #0f0c29; /* 设置一个纯色的深色底色 */
    position: relative; /* 确保 z-index 生效 */
}

/* --- 头部样式 --- */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}


/* --- 域名容器布局 --- */
.domain-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px; /* 卡片之间的间距 */
}


/* --- 域名卡片核心样式：玻璃拟态效果 --- */
.domain-card {
    /* 关键：半透明背景 */
    background: rgba(255, 255, 255, 0.15); 
    
    /* 关键：背景模糊，这是玻璃效果的核心 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* 兼容 Safari */

    /* 增强效果的边框和阴影 */
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);

    /* 内部布局和尺寸 */
    width: 300px;
    padding: 25px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 鼠标悬停时的交互效果 */
.domain-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
}

/* --- 卡片内部元素样式 --- */
.domain-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    word-break: break-all;
}

.domain-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 不同状态的不同颜色 */
.status-forsale {
    background-color: #4CAF50; /* 绿色 */
    color: white;
}
.status-project {
    background-color: #2196F3; /* 蓝色 */
    color: white;
}
.status-reserved {
    background-color: #ff9800; /* 橙色 */
    color: white;
}

.domain-description {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.6;
}

/* --- 让卡片成为定位容器 --- */
.domain-card {
    position: relative; /* 这是让内部绝对定位元素生效的关键 */
    padding-bottom: 70px; /* 增加底部内边距，为按钮留出空间 */
}

/* --- 联系按钮的样式 --- */
.contact-button {
    /* 定位和尺寸 */
    position: absolute;
    bottom: 25px; /* 距离卡片底部25px */
    left: 50%;
    transform: translateX(-50%); /* 水平居中 */
    
    /* 视觉样式 */
    background-color: #0088cc; /* Telegram 风格的蓝色 */
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);

    /* ▼▼▼ 核心动画效果 ▼▼▼ */
    opacity: 0; /* 默认状态下完全透明 */
    transform: translateX(-50%) translateY(10px); /* 在居中的基础上，再向下移动10px */
    transition: opacity 0.3s ease, transform 0.3s ease; /* 为透明度和位置变化添加过渡效果 */
}

/* --- 鼠标悬停在卡片上时，按钮的变化 --- */
.domain-card:hover .contact-button {
    opacity: 1; /* 变为不透明 */
    transform: translateX(-50%) translateY(0); /* 移动回原来的位置 */
}
/* --- 域名价格样式 --- */
.domain-price {
    font-size: 2.2rem; /* 字体大一些，突出价格 */
    font-weight: 700;  /* 粗体 */
    color: #4dff91;   /* 使用一个明亮的绿色来吸引注意 */
    margin: 15px 0;    /* 上下留出一些间距 */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); /* 添加一点文字阴影增加立体感 */
}

/* ▼▼▼ 定义动态背景的关键帧动画 ▼▼▼ */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%; /* 动画开始时，背景的位置 */
    }
    50% {
        background-position: 100% 50%; /* 动画进行到一半时，背景的位置 */
    }
    100% {
        background-position: 0% 50%; /* 动画结束时，背景回到起始位置，形成无缝循环 */
    }
}
/* --- 动态光球背景 --- */
.blob-container {
    position: fixed; /* 固定在视窗，不随滚动条滚动 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* 隐藏超出视窗的光球部分 */
    z-index: -1; /* 将其置于所有内容的下层 */
}

.blob {
    position: absolute;
    border-radius: 50%; /* 将 div 变成圆形 */
    
    /* 核心：高斯模糊，让边缘柔和并互相融合 */
    filter: blur(100px); 
    -webkit-filter: blur(100px);

    opacity: 0.7;
}

/* 定义第一个光球的样式和动画 */
.blob:nth-child(1) {
    width: 400px;
    height: 400px;
    background-color: #4a2f8c; /* 紫色 */
    top: 10%;
    left: 10%;
    animation: move1 18s infinite alternate; /* 应用动画1 */
}

/* 定义第二个光球的样式和动画 */
.blob:nth-child(2) {
    width: 300px;
    height: 300px;
    background-color: #20135c; /* 深蓝色 */
    bottom: 15%;
    right: 20%;
    animation: move2 22s infinite alternate; /* 应用动画2 */
}

/* 定义第三个光球的样式和动画 */
.blob:nth-child(3) {
    width: 250px;
    height: 250px;
    /* ▼▼▼ 将这里的颜色从粉色替换为青绿色 ▼▼▼ */
    background-color: #23d5ab; /* 青绿色 */
    top: 40%;
    left: 50%;
    animation: move3 25s infinite alternate; /* 动画保持不变 */
}

/* --- 光球的动画定义 --- */

/* 动画1: 移动范围更大，会向上飘移出视野 */
@keyframes move1 {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        /* 原来是: translate(100px, 200px) scale(1.2) */
        transform: translate(400px, -150px) scale(1.2);
    }
}

/* 动画2: 对角线移动，范围贯穿屏幕 */
@keyframes move2 {
    from {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    to {
        /* 原来是: translate(-200px, -100px) rotate(180deg) scale(0.9) */
        transform: translate(-500px, 250px) rotate(180deg) scale(0.9);
    }
}

/* 动画3: 移动范围更大，会在屏幕中大幅度漂移 */
@keyframes move3 {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        /* 原来是: translate(-150px, 100px) scale(1.3) */
        transform: translate(300px, -300px) scale(1.3);
    }
}