/* ===== 全局基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* 去掉按钮和非文本元素的高亮 */
    -webkit-tap-highlight-color: transparent;
}

/* 默认禁止非文本内容被选中 */
body, .container, button, .domain-example {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 允许输入框和可复制文本选中 */
input, textarea, .domain-result, .recommendation, .tips, .pricing-link, .contact-service, .customer-service-info {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* ===== 容器 ===== */
.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
    z-index: -1;
}

/* ===== 标题 ===== */
h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 8px;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

/* ===== 输入区域 ===== */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 600;
    font-size: 16px;
}

input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8fafc;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), inset 0 2px 5px rgba(0,0,0,0.05);
    background: white;
}

/* ===== 域名示例 ===== */
.domain-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.domain-example {
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.domain-example:hover {
    background: #bae6fd;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(3, 105, 161, 0.2);
}

/* ===== 提示文字 ===== */
.tips {
    font-size: 14px;
    color: #64748b;
    margin-top: 12px;
    text-align: center;
    font-weight: 500;
}

/* ===== 按钮 ===== */
button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

button:active { transform: translateY(0); }

button:disabled {
    background: linear-gradient(90deg, #94a3b8, #cbd5e1);
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== 状态提示 ===== */
.status {
    margin-top: 25px;
    padding: 25px;
    border-radius: 15px;
    display: none;
    line-height: 1.6;
    animation: fadeIn 0.5s ease;
}

.available { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.taken { background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; }
.error { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }

.status-title {
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-title i { font-size: 24px; }

.contact-service {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    margin-top: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== 加载动画 ===== */
.loading {
    text-align: center;
    margin: 25px 0;
    display: none;
    flex-direction: column;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(59, 130, 246, 0.2);
    border-top: 5px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading p {
    margin-top: 20px;
    color: #4b5563;
    font-weight: 600;
    font-size: 17px;
}

/* ===== 固定客服模块（居中） ===== */
.customer-service-info {
    margin-top: 30px;
    text-align: center;
}

.customer-service-info p {
    color: #475569;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.customer-service-info .service-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.customer-service-info .service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 15px;
    border-radius: 15px;
    font-size: 16px;
    color: #334155;
    font-weight: 600;
    width: 100%;
    max-width: 300px;
}

/* ===== 小标签 ===== */
.feature-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: #ef4444;
    color: white;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
    z-index: 10;
}

/* ===== 域名结果 & 推荐 ===== */
.domain-result {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0;
    word-break: break-all;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.7);
}

.recommendation {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    font-weight: 500;
}

/* ===== 域名报价链接 ===== */
.pricing-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}

.pricing-link:hover { text-decoration: underline; }

/* ===== 响应式 ===== */
@media (max-width: 600px) {
    body { padding: 15px; }
    .container { padding: 20px 15px; }
    h1 { font-size: 26px; }
    .service-info { flex-direction: column; align-items: center; gap: 12px; }
    .service-item { width: 100%; }
    .feature-badge { top: 15px; right: -40px; font-size: 13px; padding: 6px 35px; }
}