/*
 * 云上云诺 — 组件样式
 * 克制粉色，接近萌备的朴素胶囊搜索与信息列表。
 */

.yunnuo-hero {
    text-align: center;
    padding: 20px 0 0;
}

.yunnuo-title {
    font-size: 28px;
    margin-bottom: 8px;
    color: #fff;
}

.yunnuo-subtitle {
    font-size: 16px;
    opacity: 0.82;
    margin-bottom: 25px;
}

.yunnuo-search-form {
    display: flex;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
}

.yunnuo-search-form input {
    flex: 1;
    border: rgba(255,255,255,0.3) solid 1px;
    border-right: none;
    border-radius: var(--yunnuo-radius-pill) 0 0 var(--yunnuo-radius-pill);
    padding: 14px 25px;
    color: var(--yunnuo-text);
    font-size: 15px;
    font-family: var(--yunnuo-font);
    background: rgba(255,255,255,0.1);
    text-align: center;
}

.yunnuo-search-form input::placeholder {
    color: rgba(255,255,255,0.56);
}

.yunnuo-search-form input:focus {
    border-color: var(--yunnuo-primary);
    background: rgba(255,255,255,0.15);
}

.yunnuo-search-btn {
    padding: 14px 30px;
    border-radius: 0 var(--yunnuo-radius-pill) var(--yunnuo-radius-pill) 0;
    background: linear-gradient(90deg, var(--yunnuo-purple), var(--yunnuo-purple-end));
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    font-family: var(--yunnuo-font);
    transition: opacity 0.2s;
}

.yunnuo-search-btn:hover {
    opacity: 0.85;
}

.yunnuo-stats {
    display: flex;
    gap: 15px;
    justify-content: center;
    text-align: center;
}

.yunnuo-stat-card {
    flex: 1;
    padding: 15px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--yunnuo-radius);
    border: rgba(255,255,255,0.1) solid 1px;
}

.yunnuo-stat-num {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

.yunnuo-stat-label {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 4px;
}

.yunnuo-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: var(--yunnuo-radius-pill);
    font-size: 15px;
    cursor: pointer;
    font-family: var(--yunnuo-font);
    transition: opacity 0.2s;
    text-align: center;
    border: none;
    text-decoration: none;
}

.yunnuo-btn:hover {
    text-decoration: none;
    opacity: 0.86;
}

.yunnuo-btn-primary {
    background: #ff3399;
    color: #fff;
}

.yunnuo-btn-primary:hover {
    background: #ff0097;
    color: #fff;
}

.yunnuo-btn-secondary {
    background: rgba(255,255,255,0.12);
    color: var(--yunnuo-text);
    border: rgba(255,255,255,0.2) solid 1px;
}

.yunnuo-btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: var(--yunnuo-text);
}

.yunnuo-btn-danger {
    background: #d53939;
    color: #fff;
}

.yunnuo-btn-danger:hover {
    background: #b92929;
}

.yunnuo-form {
    margin: 15px 0;
}

.yunnuo-form-group {
    margin-bottom: 16px;
}

.yunnuo-form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    opacity: 0.9;
}

.yunnuo-form-group .required {
    color: #ffb6d9;
}

.yunnuo-form-group input[type="text"],
.yunnuo-form-group input[type="url"],
.yunnuo-form-group input[type="email"],
.yunnuo-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: rgba(255,255,255,0.3) solid 1px;
    border-radius: 5px;
    background: rgba(255,255,255,0.08);
    color: var(--yunnuo-text);
    font-size: 14px;
    font-family: var(--yunnuo-font);
    transition: border-color 0.2s;
}

.yunnuo-form-group input:focus,
.yunnuo-form-group textarea:focus {
    border-color: var(--yunnuo-primary);
}

.yunnuo-form-group input::placeholder,
.yunnuo-form-group textarea::placeholder {
    color: rgba(255,255,255,0.42);
}

.yunnuo-form-hint {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 4px;
}

.yunnuo-code-row {
    display: flex;
    gap: 10px;
}

.yunnuo-code-row input {
    flex: 1;
}

.yunnuo-steps {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.yunnuo-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.yunnuo-step.active {
    opacity: 1;
}

.yunnuo-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.2);
}

.yunnuo-step.active .yunnuo-step-num {
    background: #ff3399;
    border-color: #ff3399;
}

.yunnuo-step-label {
    font-size: 12px;
}

.yunnuo-step-content {
    display: none;
}

.yunnuo-step-content.active {
    display: block;
}

.yunnuo-step-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.yunnuo-rules-text {
    line-height: 1.8;
    font-size: 15px;
}

.yunnuo-rules-text ul {
    margin: 10px 0;
    padding-left: 20px;
}

.yunnuo-rules-text li {
    margin-bottom: 5px;
}

.yunnuo-banned-list li {
    color: #ffb6d9;
}

.yunnuo-number-select {
    text-align: center;
    margin: 20px 0;
}

.yunnuo-number-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 10px;
    font-size: 22px;
}

.yunnuo-number-prefix,
.yunnuo-number-suffix {
    font-size: 20px;
    white-space: nowrap;
}

.yunnuo-number-preview input {
    width: 160px;
    padding: 8px 12px;
    font-size: 22px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    color: var(--yunnuo-text);
    font-family: var(--yunnuo-font);
    letter-spacing: 2px;
}

.yunnuo-number-preview input:focus {
    border-color: var(--yunnuo-primary);
}

.yunnuo-number-status {
    min-height: 24px;
    font-size: 14px;
    margin: 8px 0;
}

.yunnuo-number-status.available {
    color: #90dfa2;
}

.yunnuo-number-status.taken {
    color: #ffb6d9;
}

.yunnuo-message {
    padding: 12px 18px;
    border-radius: 5px;
    margin: 12px 0;
    font-size: 14px;
    text-align: center;
}

.yunnuo-message.success {
    background: rgba(0, 180, 42, 0.2);
    border: 1px solid rgba(0, 180, 42, 0.4);
    color: #90dfa2;
}

.yunnuo-message.error {
    background: rgba(245, 63, 63, 0.2);
    border: 1px solid rgba(245, 63, 63, 0.4);
    color: #ffb6d9;
}

.yunnuo-message.info {
    background: rgba(66, 164, 224, 0.2);
    border: 1px solid rgba(66, 164, 224, 0.4);
    color: #99ccff;
}

.yunnuo-done {
    text-align: center;
    padding: 20px;
}

.yunnuo-done-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.yunnuo-done-number {
    font-size: 26px;
    color: #fff;
    margin: 15px 0;
    word-break: break-all;
}

.yunnuo-embed {
    border: rgba(255,255,255,0.2) solid 1px;
    border-radius: var(--yunnuo-radius);
    padding: 15px 20px;
}

.yunnuo-embed h3 {
    margin-bottom: 8px;
    font-size: 16px;
}

.yunnuo-embed pre {
    background: rgba(0,0,0,0.2);
    padding: 12px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
}

.yunnuo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.yunnuo-table th,
.yunnuo-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-align: left;
}

.yunnuo-table th {
    background: rgba(255,255,255,0.06);
}

@media (max-width: 600px) {
    .yunnuo-search-form {
        flex-direction: column;
        gap: 10px;
    }

    .yunnuo-search-form input,
    .yunnuo-search-btn {
        border-radius: var(--yunnuo-radius-pill);
        border-right: rgba(255,255,255,0.3) solid 1px;
    }

    .yunnuo-stats {
        flex-direction: column;
    }

    .yunnuo-number-preview {
        flex-wrap: wrap;
    }
}
