.wubi-query-section {
    min-height: 100vh;
    padding: 40px 0;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.wubi-query-section .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.calculator-header {
    text-align: center;
    margin-bottom: 30px;
}

.calculator-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calculator-title i {
    font-size: 32px;
}

.calculator-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.calculator-badge {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-item {
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
}

.query-main {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.query-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.input-section {
    margin-bottom: 20px;
}

.input-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.input-section label i {
    color: #4facfe;
}

.input-wrapper {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0 16px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.form-control {
    width: 100%;
    padding: 15px 0;
    border: none;
    font-size: 18px;
    color: #333;
    outline: none;
}

.form-control::placeholder {
    color: #aaa;
}

.query-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.query-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
}

.result-section {
    margin-bottom: 25px;
}

.result-grid {
    display: grid;
    gap: 15px;
}

.empty-hint {
    text-align: center;
    color: #999;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
}

.result-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.result-char {
    font-size: 36px;
    font-weight: 600;
    color: #333;
}

.result-info {
    flex: 1;
    margin-left: 20px;
}

.result-code {
    font-size: 20px;
    font-weight: 600;
    color: #4facfe;
    font-family: monospace;
}

.result-tips {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

.copy-code-btn {
    padding: 8px 12px;
    background: #4facfe;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-code-btn:hover {
    background: #3d9ce8;
}

.code-result-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.code-char {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.code-info {
    flex: 1;
}

.code-value {
    font-size: 16px;
    font-weight: 600;
    color: #4facfe;
    font-family: monospace;
}

.code-tips {
    font-size: 13px;
    color: #888;
    margin-top: 3px;
}

.common-words {
    margin-bottom: 25px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #4facfe;
}

.words-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.word-btn {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.word-btn:hover {
    background: #4facfe;
    border-color: #4facfe;
    color: #fff;
}

.tips-section {
    background: #fffbe6;
    border: 1px solid #ffe066;
    border-radius: 12px;
    padding: 20px;
}

.tips-list {
    margin: 0;
    padding-left: 20px;
}

.tips-list li {
    padding: 8px 0;
    color: #8b7355;
    font-size: 14px;
}

@media (max-width: 480px) {
    .query-main {
        padding: 20px;
    }

    .calculator-title {
        font-size: 24px;
    }

    .result-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .result-info {
        margin-left: 0;
    }

    .word-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}