/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 天空背景容器 */
.sky-container {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #87ceeb, #e0f6ff 50%, #ffe4e1);
    overflow: hidden;
}

/* 云朵装饰 */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    animation: float 20s infinite linear;
    z-index: 1;
}

.cloud:before {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
}

.cloud:after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
}

.cloud-1 {
    width: 80px;
    height: 30px;
    top: 10%;
    left: -100px;
    animation-duration: 25s;
}

.cloud-1:before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud-1:after {
    width: 60px;
    height: 40px;
    top: -15px;
    right: 10px;
}

.cloud-2 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: -120px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.cloud-2:before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 15px;
}

.cloud-2:after {
    width: 70px;
    height: 50px;
    top: -20px;
    right: 15px;
}

.cloud-3 {
    width: 60px;
    height: 25px;
    top: 40%;
    left: -80px;
    animation-duration: 20s;
    animation-delay: -10s;
}

.cloud-3:before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 8px;
}

.cloud-3:after {
    width: 45px;
    height: 30px;
    top: -12px;
    right: 8px;
}

.cloud-4 {
    width: 90px;
    height: 35px;
    top: 60%;
    left: -110px;
    animation-duration: 35s;
    animation-delay: -15s;
}

.cloud-4:before {
    width: 55px;
    height: 55px;
    top: -28px;
    left: 12px;
}

.cloud-4:after {
    width: 65px;
    height: 45px;
    top: -18px;
    right: 12px;
}

.cloud-5 {
    width: 70px;
    height: 28px;
    top: 80%;
    left: -90px;
    animation-duration: 28s;
    animation-delay: -8s;
}

.cloud-5:before {
    width: 45px;
    height: 45px;
    top: -22px;
    left: 10px;
}

.cloud-5:after {
    width: 50px;
    height: 35px;
    top: -15px;
    right: 10px;
}

@keyframes float {
    0% {
        transform: translateX(-100px);
    }

    100% {
        transform: translateX(calc(100vw + 100px));
    }
}

/* 主内容区域 */
.main-content {
    position: relative;
    z-index: 10;
}

/* 容器 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部区域 */
.header-section {
    padding: 40px 0 60px;
    text-align: center;
}

.header-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-title {
    margin-bottom: 20px;
}

.title-text {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.title-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #4A90E2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.header-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

/* 域名展示区域 */
.domain-showcase-section {
    padding: 0 0 60px;
}

/* 加载状态 */
.loading-container {
    text-align: center;
    padding: 80px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 错误状态 */
.error-container {
    text-align: center;
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.error-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.retry-btn {
    background: linear-gradient(135deg, #FF6B6B, #EE5A52);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

/* 域名展示卡片 */
.domain-showcase-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.domain-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.domain-showcase-card:hover::before {
    left: 100%;
}

/* 域名标题区域 */
.domain-header {
    margin-bottom: 40px;
    /* padding-bottom: 30px; */
    border-bottom: 2px solid rgba(74, 144, 226, 0.1);
}

.domain-name-large {
    font-size: 4rem;
    font-weight: 800;
    color: #4A90E2;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.domain-price {
    color: #FF4444;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    background: rgba(255, 68, 68, 0.1);
    padding: 10px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.price-label {
    margin-right: 8px;
}

.price-value {
    font-weight: 700;
}

/* 域名描述区域 */
.domain-description {
    margin-bottom: 50px;
}

.description-card {
    background: rgba(74, 144, 226, 0.05);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    text-align: left;
}

.description-title {
    font-size: 2rem;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.description-content {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    white-space: pre-wrap;
    /* 至少显示 5 行高度，无内容也占位 */
    min-height: calc(1em * 1.8 * 6);
}

/* 操作按钮区域 */
.domain-actions {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    /* margin-bottom: 40px; */
    margin-top: 60px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.visit-btn {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

.visit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.4);
}

.buy-btn {
    background: linear-gradient(135deg, #FF6B6B, #EE5A52);
    color: white;
}

.buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

.learn-more-btn {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

.learn-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.4);
}

.btn-icon {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

/* 返回按钮区域 */
.back-section {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(74, 144, 226, 0.1);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4A90E2;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.back-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.back-link:hover::before {
    left: 100%;
}

.back-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.back-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .title-text {
        font-size: 2.5rem;
    }

    .title-subtitle {
        font-size: 1.2rem;
    }

    .domain-showcase-card {
        padding: 30px;
    }

    .domain-name-large {
        font-size: 2.5rem;
    }

    .domain-actions {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .description-title {
        font-size: 1.5rem;
    }

    .description-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 30px 20px;
    }

    .title-text {
        font-size: 2rem;
    }

    .domain-showcase-card {
        padding: 25px;
    }

    .domain-name-large {
        font-size: 2rem;
    }

    .description-title {
        font-size: 1.3rem;
    }

    .description-content {
        font-size: 1rem;
    }
}