/* 火星文转换器样式 */

/* 主容器样式 */
.huoxingwen {
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

.huoxingwen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

/* 对齐容器 */
.huoxingwen .align {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

/* 结果显示区域 */
.huoxingwen .results {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.huoxingwen .results::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;
}

.huoxingwen .results:hover::before {
    left: 100%;
}

.huoxingwen .results.color1 {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-left: 4px solid #ff6b6b;
}

.huoxingwen .results.color2 {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-left: 4px solid #4ecdc4;
}

.huoxingwen .results .r1,
.huoxingwen .results .r2 {
    margin: 0 0 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.huoxingwen .results .r2 {
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
}

.huoxingwen .results .left {
    font-weight: 600;
    color: #555;
    min-width: 120px;
}

.huoxingwen .results .right {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.huoxingwen .results .right b {
    color: #2c3e50;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 输入区域 */
.huoxingwen .frominput {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.huoxingwen .row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.huoxingwen .row .left {
    font-weight: 600;
    color: #555;
    min-width: 100px;
    font-size: 16px;
}

.huoxingwen .row .right {
    flex: 1;
}

/* 输入框样式 */
.huoxingwen .intext {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Microsoft YaHei', sans-serif;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    resize: vertical;
}

.huoxingwen .intext:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.huoxingwen .intext::placeholder {
    color: #999;
    font-style: italic;
}

.huoxingwen textarea.intext {
    min-height: 120px;
    line-height: 1.6;
}

.huoxingwen select.intext {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* 按钮区域 */
.huoxingwen .btn {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.huoxingwen .button {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.huoxingwen .button::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;
}

.huoxingwen .button:hover::before {
    left: 100%;
}

.huoxingwen .button.corlor_default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.huoxingwen .button.corlor_default:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.huoxingwen .button.corlor_default:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 信息介绍区域 */
.huoxingwen .arc-wrap {
    margin-top: 30px;
}

.huoxingwen .tbox {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.huoxingwen .tbox:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.huoxingwen .tbox .padding {
    padding: 25px;
}

.huoxingwen .is-parent p {
    margin: 0 0 15px 0;
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

.huoxingwen .is-parent p:last-child {
    margin-bottom: 0;
}

.huoxingwen .is-parent p.title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    position: relative;
}

.huoxingwen .is-parent p.title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main {
        padding: 0 10px;
    }

    .huoxingwen {
        padding: 20px;
        margin: 15px 0px;
        border-radius: 0;
    }

    .huoxingwen .row .right {
        width: 100%;
    }

    .huoxingwen .align {
        gap: 10px;
        margin-bottom: 20px;
    }

    .huoxingwen .results {
        padding: 15px;
    }

    .huoxingwen .results .r1,
    .huoxingwen .results .r2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .huoxingwen .results .left {
        min-width: auto;
        font-size: 14px;
    }

    .huoxingwen .results .right {
        text-align: left;
        width: 100%;
    }

    .huoxingwen .frominput {
        padding: 20px 0;
    }

    .huoxingwen .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }

    .huoxingwen .row .left {
        min-width: auto;
        font-size: 14px;
    }

    .huoxingwen .intext {
        padding: 12px 15px;
        font-size: 14px;
    }

    .huoxingwen .btn {
        gap: 10px;
    }

    .huoxingwen .button {
        min-width: auto;
        width: 30%;
        padding: 12px 10px;
        font-size: 14px;
    }

    .huoxingwen .tbox .padding {
        padding: 20px;
    }

    .huoxingwen .is-parent p {
        font-size: 14px;
    }

    .huoxingwen .is-parent p.title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .huoxingwen {
        padding: 15px;
        border-radius: 0px;
    }

    .huoxingwen .results {
        padding: 12px;
        border-radius: 8px;
    }

    .huoxingwen .frominput {
        padding: 15px 0;
        border-radius: 8px;
    }

    .huoxingwen .tbox .padding {
        padding: 15px;
    }
}

/* 动画效果 */
.huoxingwen .results .r1 {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 特殊效果 */
.huoxingwen .results.color1 .right b {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.huoxingwen .results.color2 .right b {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 加载状态 */
.huoxingwen .loading {
    position: relative;
}

.huoxingwen .loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}